|
org.netbeans.modules.versioning/1 1.32.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.versioning.spi.VersioningSystem
public abstract class VersioningSystem
Base class for a versioning system that integrates into IDE. A versioning system provides these services: - annotations (coloring, actions) - file system handler - diff provider Versioning system registration can be done in one of the following ways:
ServiceProvider.org.netbeans.modules.versioning.spi.VersioningSystem#Registration. (recommended)
| Nested Class Summary | |
|---|---|
static interface |
VersioningSystem.Registration
Register a VersioningSystem in the IDE. |
| Field Summary | |
|---|---|
static String |
PROP_DISPLAY_NAME
Short name of the versioning system, it will be used as popup menu label, label in tooltips, etc. |
static String |
PROP_LOCALHISTORY_VCS
Marker property for a Versioning system that operates in Local History mode. |
static String |
PROP_MENU_LABEL
Short name of the versioning system, it will be used as menu label and it should define a mnemonic key. |
| Constructor Summary | |
|---|---|
protected |
VersioningSystem()
Protected constructor, does nothing. |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a listener for change events. |
protected void |
fireAnnotationsChanged(Set<File> files)
Helper method to signal that annotations of a set of files changed. |
protected void |
fireStatusChanged(File file)
Helper method that calls fireStatusChanged(Collections.singleton(file)). |
protected void |
fireStatusChanged(Set<File> files)
Helper method to signal that status of a set of files changed. |
protected void |
fireVersionedFilesChanged()
Helper method to signal that the versioning system started to manage some previously unversioned files (those files were imported into repository). |
CollocationQueryImplementation |
getCollocationQueryImplementation()
Retrieves a CollocationQueryImplementation if this versioning system provides one. |
void |
getOriginalFile(File workingCopy,
File originalFile)
Get the original (unmodified) copy of a file. |
Object |
getProperty(String key)
Gets a general property of a Versioning system. |
File |
getTopmostManagedAncestor(File file)
Tests whether the file is managed by this versioning system. |
VCSAnnotator |
getVCSAnnotator()
Retrieves a VCSAnnotator implementation if this versioning system provides one. |
VCSHistoryProvider |
getVCSHistoryProvider()
Retrieves a VCSHistoryProvider implementation if this versioning system provides one. |
VCSInterceptor |
getVCSInterceptor()
Retrieves a VCSInterceptor implementation if this versioning system provides one. |
VCSVisibilityQuery |
getVisibilityQuery()
Retrieves a VCSVisibilityQuery implementation if this versioning system provides one. |
protected void |
putProperty(String key,
Object value)
Sets a general property of a Versioning system. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a listener for change events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_DISPLAY_NAME
getProperty(String),
putProperty(String, Object),
Constant Field Valuespublic static final String PROP_MENU_LABEL
getProperty(String),
putProperty(String, Object),
Constant Field Valuespublic static final String PROP_LOCALHISTORY_VCS
| Constructor Detail |
|---|
protected VersioningSystem()
| Method Detail |
|---|
public final Object getProperty(String key)
key - property key
PROP_DISPLAY_NAME,
PROP_MENU_LABEL
protected final void putProperty(String key,
Object value)
key - property key, must NOT be nullvalue - property value, may be nullPROP_DISPLAY_NAME,
PROP_MENU_LABELpublic File getTopmostManagedAncestor(File file)
file - a file
public VCSAnnotator getVCSAnnotator()
public VCSInterceptor getVCSInterceptor()
public VCSHistoryProvider getVCSHistoryProvider()
public void getOriginalFile(File workingCopy,
File originalFile)
workingCopy - a File in the working copyoriginalFile - placeholder File for the original (unmodified) copy of the working filepublic CollocationQueryImplementation getCollocationQueryImplementation()
public VCSVisibilityQuery getVisibilityQuery()
public final void addPropertyChangeListener(PropertyChangeListener listener)
listener - a PropertyChangeListenerpublic final void removePropertyChangeListener(PropertyChangeListener listener)
listener - a PropertyChangeListenerprotected final void fireAnnotationsChanged(Set<File> files)
files - set of files whose annotations changed or null if the change affects all filesprotected final void fireStatusChanged(Set<File> files)
files - set of files whose status changed or null if all files changed statusprotected final void fireVersionedFilesChanged()
protected final void fireStatusChanged(File file)
file - a file whose status changedfireStatusChanged(java.util.Set)
|
org.netbeans.modules.versioning/1 1.32.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||