Package | Description |
---|---|
org.netbeans.modules.versioning.core.api |
Everybody trying to provide own implementation of a NetBeans VCS module
should be interested in APIs in this package.
|
org.netbeans.modules.versioning.core.filesystems |
Everybody trying to provide own implementation of file
system should be interested
in APIs in this package.
|
org.netbeans.modules.versioning.core.spi |
SPI to integrate a VCS module into the NetBeans IDE
|
org.netbeans.modules.versioning.core.util |
Modifier and Type | Method and Description |
---|---|
static VCSFileProxy |
VCSFileProxy.createFileProxy(File file)
Creates a VCSFileProxy based on io.File.
|
static VCSFileProxy |
VCSFileProxy.FileObject fileObject)
Creates a VCSFileProxy based on the given
FileObject . |
static VCSFileProxy |
VCSFileProxy.createFileProxy(URI uri) |
static VCSFileProxy |
VCSFileProxy.createFileProxy(VCSFileProxy parent,
String child)
Creates a new VCSFileProxy from the given parent and child name
|
VCSFileProxy |
VCSFileProxy.getParentFile()
Returns this files parent or
null if this file doesn't have a parent. |
VCSFileProxy[] |
VCSFileProxy.listFiles()
Returns an array of files located in a directory given by this file.
|
VCSFileProxy |
VCSFileProxy.normalizeFile()
Normalize a file path to a clean form.
|
Modifier and Type | Method and Description |
---|---|
int |
VCSFileProxy.compareTo(VCSFileProxy o) |
static VCSFileProxy |
VCSFileProxy.createFileProxy(VCSFileProxy parent,
String child)
Creates a new VCSFileProxy from the given parent and child name
|
static ProcessBuilder |
VersioningSupport.createProcessBuilder(VCSFileProxy file)
Creates Process builder.
|
static VersioningSystem |
VersioningSupport.getOwner(VCSFileProxy file)
Queries the Versioning infrastructure for file ownership.
|
static boolean |
VersioningSupport.isExcluded(VCSFileProxy folder)
Tests whether the given folder is excluded (unversioned) from version control.
|
static boolean |
VersioningSupport.isFlat(VCSFileProxy file)
Tests whether the given file represents a flat folder (eg a java package), that is a folder
that contains only its direct children.
|
static void |
VersioningSupport.refreshFor(VCSFileProxy[] files)
Refreshes all necessary filesystems.
|
Modifier and Type | Method and Description |
---|---|
VCSFileProxy |
VCSFileProxyOperations.getParentFile(VCSFileProxy file) |
VCSFileProxy[] |
VCSFileProxyOperations.list(VCSFileProxy file) |
VCSFileProxy |
VCSFileProxyOperations.normalize(VCSFileProxy file) |
Modifier and Type | Method and Description |
---|---|
static void |
VCSFilesystemInterceptor.afterMove(VCSFileProxy from,
VCSFileProxy to) |
static void |
VCSFilesystemInterceptor.beforeChange(VCSFileProxy file) |
static void |
VCSFilesystemInterceptor.beforeCopy(VCSFileProxy from,
VCSFileProxy to) |
static void |
VCSFilesystemInterceptor.beforeCreate(VCSFileProxy parent,
String name,
boolean isFolder) |
boolean |
VCSFileProxyOperations.canWrite(VCSFileProxy file) |
static boolean |
VCSFilesystemInterceptor.canWriteReadonlyFile(VCSFileProxy file)
Determines if the given file should be considered writable by the IDE even if it isn't in
means of the relevant filesystem.
|
static void |
VCSFilesystemInterceptor.copySuccess(VCSFileProxy from,
VCSFileProxy to) |
static void |
VCSFilesystemInterceptor.createdExternally(VCSFileProxy file) |
static void |
VCSFilesystemInterceptor.createFailure(VCSFileProxy parent,
String name,
boolean isFolder) |
ProcessBuilder |
VCSFileProxyOperations.createProcessBuilder(VCSFileProxy file) |
static void |
VCSFilesystemInterceptor.createSuccess(VCSFileProxy file) |
static void |
VCSFilesystemInterceptor.deletedExternally(VCSFileProxy file) |
static void |
VCSFilesystemInterceptor.deleteSuccess(VCSFileProxy file) |
boolean |
VCSFileProxyOperations.exists(VCSFileProxy file) |
static void |
VCSFilesystemInterceptor.fileChanged(VCSFileProxy file) |
static void |
VCSFilesystemInterceptor.fileLocked(VCSFileProxy fo)
There is a contract that says that when a file is locked, it is expected to be changed.
|
String |
VCSFileProxyOperations.getAbsolutePath(VCSFileProxy file) |
static Object |
VCSFilesystemInterceptor.getAttribute(VCSFileProxy file,
String attrName)
Returns the given files files attribute
|
static VCSFilesystemInterceptor.IOHandler |
VCSFilesystemInterceptor.getCopyHandler(VCSFileProxy from,
VCSFileProxy to) |
static VCSFilesystemInterceptor.IOHandler |
VCSFilesystemInterceptor.getDeleteHandler(VCSFileProxy file) |
InputStream |
VCSFileProxyOperations.getInputStream(VCSFileProxy file,
boolean checkLock) |
static VCSFilesystemInterceptor.IOHandler |
VCSFilesystemInterceptor.getMoveHandler(VCSFileProxy from,
VCSFileProxy to) |
String |
VCSFileProxyOperations.getName(VCSFileProxy file) |
VCSFileProxy |
VCSFileProxyOperations.getParentFile(VCSFileProxy file) |
static VCSFilesystemInterceptor.IOHandler |
VCSFilesystemInterceptor.getRenameHandler(VCSFileProxy from,
String newName) |
boolean |
VCSFileProxyOperations.isDirectory(VCSFileProxy file) |
boolean |
VCSFileProxyOperations.isFile(VCSFileProxy file) |
long |
VCSFileProxyOperations.lastModified(VCSFileProxy file) |
VCSFileProxy[] |
VCSFileProxyOperations.list(VCSFileProxy file) |
static long |
VCSFilesystemInterceptor.listFiles(VCSFileProxy dir,
long lastTimeStamp,
List<? super VCSFileProxy> children) |
VCSFileProxy |
VCSFileProxyOperations.normalize(VCSFileProxy file) |
void |
VCSFileProxyOperations.refreshFor(VCSFileProxy... files) |
FileObject |
VCSFileProxyOperations.toFileObject(VCSFileProxy file) |
URI |
VCSFileProxyOperations.toURI(VCSFileProxy file) |
Modifier and Type | Method and Description |
---|---|
VCSFileProxy[] |
VCSHistoryProvider.HistoryEntry.getFiles()
Returns the files this HistoryEntry applies to.
|
VCSFileProxy[] |
VCSHistoryProvider.HistoryEvent.getFiles()
Returns files which history has changed.
|
VCSFileProxy |
VersioningSystem.getTopmostManagedAncestor(VCSFileProxy file)
Tests whether the file is managed by this versioning system.
|
Modifier and Type | Method and Description |
---|---|
boolean |
VCSContext.FileFilter.accept(VCSFileProxy file) |
void |
VCSInterceptor.afterChange(VCSFileProxy file)
Called after a file changed.
|
void |
VCSInterceptor.afterCopy(VCSFileProxy from,
VCSFileProxy to)
Called after a file or folder has been copied.
|
void |
VCSInterceptor.afterCreate(VCSFileProxy file)
Called after a new file or folder has beed created.
|
void |
VCSInterceptor.afterDelete(VCSFileProxy file)
Called after a file or folder is deleted.
|
void |
VCSInterceptor.afterMove(VCSFileProxy from,
VCSFileProxy to)
Called after a file or folder has beed moved.
|
void |
VCSInterceptor.beforeChange(VCSFileProxy file)
Called before a file is changed.
|
boolean |
VCSInterceptor.beforeCopy(VCSFileProxy from,
VCSFileProxy to)
Notifies the interceptor that the file or folder is about to be copied.
|
boolean |
VCSInterceptor.beforeCreate(VCSFileProxy file,
boolean isDirectory)
Notifies the interceptor that the file or folder is about to be created.
|
boolean |
VCSInterceptor.beforeDelete(VCSFileProxy file)
Notifies the interceptor that the file or folder is about to be deleted.
|
void |
VCSInterceptor.beforeEdit(VCSFileProxy file)
Called before a file is about to enter Edit mode.
|
boolean |
VCSInterceptor.beforeMove(VCSFileProxy from,
VCSFileProxy to)
Notifies the interceptor that the file or folder is about to be moved.
|
boolean |
VCSContext.contains(VCSFileProxy file)
Determines whether the supplied VCSFileProxy is contained in this context.
|
Action |
VCSHistoryProvider.createShowHistoryAction(VCSFileProxy[] files)
Returns an action which is expected to open the particular versioning systems
history view.
|
void |
VCSInterceptor.doCopy(VCSFileProxy from,
VCSFileProxy to)
Called if beforeCopy() returns true and delegates the copy operation to this interceptor.
|
void |
VCSInterceptor.doCreate(VCSFileProxy file,
boolean isDirectory)
Called if beforeCreate() returns true and delegates the create operation to this interceptor.
|
void |
VCSInterceptor.doDelete(VCSFileProxy file)
Called if beforeDelete() returns true and delegates the delete operation to this interceptor.
|
void |
VCSInterceptor.doMove(VCSFileProxy from,
VCSFileProxy to)
Called if beforeMove() returns true and delegates the move operation to this interceptor.
|
protected void |
VersioningSystem.fireStatusChanged(VCSFileProxy file)
Helper method that calls fireStatusChanged(Collections.singleton(file)).
|
protected void |
VCSVisibilityQuery.fireVisibilityChanged(VCSFileProxy... file)
Notify a visibility change
|
Object |
VCSInterceptor.getAttribute(VCSFileProxy file,
String attrName)
Queries the versioning system for a files VCS specific attribute.
|
VCSHistoryProvider.HistoryEntry[] |
VCSHistoryProvider.getHistory(VCSFileProxy[] files,
Date fromDate)
Returns a list of all HistoryEntries for the given files ranging
between fromDate and now.
|
void |
VersioningSystem.getOriginalFile(VCSFileProxy workingCopy,
VCSFileProxy originalFile)
Get the original (unmodified) copy of a file.
|
VCSHistoryProvider.HistoryEntry |
VCSHistoryProvider.HistoryEntry.getParentEntry(VCSFileProxy file)
Returns this revisions parent entry or null if not available.
|
VCSHistoryProvider.HistoryEntry |
VCSHistoryProvider.ParentProvider.getParentEntry(VCSFileProxy file)
Return a
VCSHistoryProvider.HistoryEntry representing the parent of the VCSHistoryProvider.HistoryEntry
configured with this ParentProvider. |
void |
VCSHistoryProvider.HistoryEntry.getRevisionFile(VCSFileProxy originalFile,
VCSFileProxy revisionFile)
Get the copy of a file as it was in the revision given by this HistoryEntry.
|
void |
VCSHistoryProvider.RevisionProvider.getRevisionFile(VCSFileProxy originalFile,
VCSFileProxy revisionFile) |
VCSFileProxy |
VersioningSystem.getTopmostManagedAncestor(VCSFileProxy file)
Tests whether the file is managed by this versioning system.
|
boolean |
VCSForbiddenFolderProvider.isForbiddenFolder(VCSFileProxy folder)
Some folders are special and versioning should not look for metadata in
them.
|
boolean |
VCSInterceptor.isMutable(VCSFileProxy file)
Queries the versioning system for file mutability (write, delete, move).
|
abstract boolean |
VCSVisibilityQuery.isVisible(VCSFileProxy file)
Check whether a file is recommended to be visible.
|
long |
VCSInterceptor.refreshRecursively(VCSFileProxy dir,
long lastTimeStamp,
List<? super VCSFileProxy> children)
Allows versioning system to exclude some children from recursive
listening check.
|
Constructor and Description |
---|
HistoryEntry(VCSFileProxy[] files,
Date dateTime,
String message,
String username,
String usernameShort,
String revision,
String revisionShort,
Action[] actions,
VCSHistoryProvider.RevisionProvider revisionProvider)
Creates a new HistoryEntry instance.
|
HistoryEntry(VCSFileProxy[] files,
Date dateTime,
String message,
String username,
String usernameShort,
String revision,
String revisionShort,
Action[] actions,
VCSHistoryProvider.RevisionProvider revisionProvider,
VCSHistoryProvider.MessageEditProvider messageEditProvider)
Creates a new HistoryEntry instance.
|
HistoryEntry(VCSFileProxy[] files,
Date dateTime,
String message,
String username,
String usernameShort,
String revision,
String revisionShort,
Action[] actions,
VCSHistoryProvider.RevisionProvider revisionProvider,
VCSHistoryProvider.MessageEditProvider messageEditProvider,
VCSHistoryProvider.ParentProvider parentProvider)
Creates a new HistoryEntry instance.
|
HistoryEvent(VCSHistoryProvider source,
VCSFileProxy[] files)
Creates a new HistoryEvent
|
Modifier and Type | Method and Description |
---|---|
VCSFileProxy |
VCSSystemProvider.VersioningSystem.getTopmostManagedAncestor(VCSFileProxy file) |
Modifier and Type | Method and Description |
---|---|
static VCSHistoryProvider.HistoryEntry |
Utils.createHistoryEntry(VCSFileProxy[] proxies,
Date dateTime,
String message,
String username,
String usernameShort,
String revision,
String revisionShort,
Action[] actions,
VCSHistoryProvider.RevisionProvider rp,
VCSHistoryProvider.MessageEditProvider mep,
VCSHistoryProvider.ParentProvider pp,
Object[] lookupObjects) |
static VCSSystemProvider.VersioningSystem |
Utils.getLocalHistory(VCSFileProxy file)
Return the LoacalHistory VersioningSystem in case it is available for the given file
|
void |
VCSSystemProvider.VersioningSystem.getOriginalFile(VCSFileProxy workingCopy,
VCSFileProxy originalFile) |
static VCSSystemProvider.VersioningSystem |
Utils.getOwner(VCSFileProxy proxy)
Queries the Versioning infrastructure for file ownership.
|
VCSFileProxy |
VCSSystemProvider.VersioningSystem.getTopmostManagedAncestor(VCSFileProxy file) |
boolean |
VCSSystemProvider.VersioningSystem.isExcluded(VCSFileProxy file) |
static boolean |
Utils.isForbiddenFolder(VCSFileProxy folder)
Some folders are special and versioning should not look for metadata in
them.
|
boolean |
VCSSystemProvider.VersioningSystem.isMetadataFile(VCSFileProxy file) |