1 19 20 package org.netbeans.modules.versioning.system.cvss; 21 22 import org.netbeans.modules.versioning.spi.VCSAnnotator; 23 import org.netbeans.modules.versioning.spi.VCSContext; 24 25 import javax.swing.*; 26 import java.awt.Image ; 27 28 36 class FileStatusProvider extends VCSAnnotator { 37 38 private boolean shutdown; 39 40 public String annotateName(String name, VCSContext context) { 41 if (shutdown) return null; 42 return CvsVersioningSystem.getInstance().getAnnotator().annotateNameHtml(name, context, FileInformation.STATUS_VERSIONED_UPTODATE | FileInformation.STATUS_LOCAL_CHANGE | FileInformation.STATUS_NOTVERSIONED_EXCLUDED); 43 } 44 45 public Image annotateIcon(Image icon, VCSContext context) { 46 if (shutdown) return null; 47 return CvsVersioningSystem.getInstance().getAnnotator().annotateIcon(icon, context); 48 } 49 50 public Action[] getActions(VCSContext context, VCSAnnotator.ActionDestination destination) { 51 return Annotator.getActions(context, destination); 52 } 53 54 void shutdown() { 55 shutdown = true; 56 } 57 } 58 | Popular Tags |