1 19 20 package org.netbeans.modules.subversion; 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 34 class FileStatusProvider extends VCSAnnotator { 35 36 private boolean shutdown; 37 38 public String annotateName(String name, VCSContext context) { 39 if (shutdown) return null; 40 return Subversion.getInstance().getAnnotator().annotateNameHtml(name, context, FileInformation.STATUS_VERSIONED_UPTODATE | FileInformation.STATUS_LOCAL_CHANGE | FileInformation.STATUS_NOTVERSIONED_EXCLUDED); 41 } 42 43 public Image annotateIcon(Image icon, VCSContext context) { 44 if (shutdown) return null; 45 return Subversion.getInstance().getAnnotator().annotateIcon(icon, context); 46 } 47 48 public Action[] getActions(VCSContext context, VCSAnnotator.ActionDestination destination) { 49 return Annotator.getActions(context, destination); 50 } 51 52 void shutdown() { 53 shutdown = true; 54 } 55 } 56 | Popular Tags |