1 19 package org.netbeans.modules.localhistory; 20 21 import java.io.File ; 22 import org.netbeans.modules.versioning.spi.OriginalContent; 23 import org.netbeans.modules.versioning.spi.VCSAnnotator; 24 import org.netbeans.modules.versioning.spi.VCSInterceptor; 25 import org.netbeans.modules.versioning.spi.VersioningSystem; 26 import org.openide.util.NbBundle; 27 28 34 public class LocalHistoryVCS extends VersioningSystem implements org.netbeans.modules.versioning.spi.LocalHistory { 35 36 public LocalHistoryVCS() { 37 38 } 39 40 public String getDisplayName() { 41 return NbBundle.getMessage(LocalHistoryVCS.class, "CTL_MainMenuItem"); } 43 44 public File getTopmostManagedParent(File file) { 45 if(file == null) { 46 return null; 47 } 48 return LocalHistory.getInstance().isManagedByParent(file); 49 } 50 51 public VCSAnnotator getVCSAnnotator() { 52 return LocalHistory.getInstance().getVCSAnnotator(); 53 } 54 55 public VCSInterceptor getVCSInterceptor() { 56 return LocalHistory.getInstance().getVCSInterceptor(); 57 } 58 59 public OriginalContent getVCSOriginalContent(File workingCopy) { 60 return super.getVCSOriginalContent(workingCopy); 62 } 63 64 } 65 | Popular Tags |