| java.lang.Object org.netbeans.modules.versioning.system.cvss.CvsVersioningSystem
CvsVersioningSystem | public class CvsVersioningSystem (Code) | | A singleton CVS manager class, center of CVS module. Use
CvsVersioningSystem.getInstance() to get access
to CVS module functionality.
author: Maros Sandor |
Method Summary | |
public void | addVersioningListener(VersioningListener listener) | public static GlobalOptions | createGlobalOptions() | String | detectCvsRoot(Command cmd) Determines CVS root for the given command. | public AdminHandler | getAdminHandler() | public Annotator | getAnnotator() | public ClientRuntime | getClientRuntime(String cvsRoot) Determines correct CVS client from the given cvs root. | public ClientRuntime | getClientRuntime(Command cmd, GlobalOptions options) Gets client runtime (a repository session). | public KeywordSubstitutionOptions | getDefaultKeywordSubstitution(File file) | public FileHandler | getFileHandler() | public CvsFileTableModel | getFileTableModel(Context context, int displayStatuses) | public FileHandler | getGzippedFileHandler() | public static synchronized CvsVersioningSystem | getInstance() | public void | getOriginalFile(File workingCopy, File originalFile) | public Object | getParameter(Object key) | public FileStatusCache | getStatusCache() | File | getTopmostManagedParent(File file) Tests whether the file is managed by this versioning system. | public VCSAnnotator | getVCSAnnotator() | public VCSInterceptor | getVCSInterceptor() | public static void | ignoreFilesystemEvents(boolean ignore) | public boolean | isBinary(File file) Uses first 1024 bytes test. | boolean | isIgnored(File file) Checks if the file is ignored by CVS module. | public boolean | isIgnoredFilename(File file) | boolean | isManaged(File file) Tests whether a file or directory should receive the STATUS_NOTVERSIONED_NOTMANAGED status. | public boolean | isText(File file) | boolean | isUnignored(File file) Returns true for files that were originally ignored by default (.exe files for example) but the user
explicitly invoked CVS/Unignore on them. | public RequestProcessor.Task | post(Command cmd, ExecutorSupport mgr) Executes this command asynchronously, in a separate thread, and returns immediately. | public RequestProcessor.Task | post(Command cmd, GlobalOptions options, ExecutorSupport mgr) Schedules given command for execution.
Parameters: cmd - Parameters: options - Global options to use, may be set to null to use default options Parameters: mgr - already scheduled task throws: IllegalCommandException - if the command is not valid, e.g. | public void | refreshAllAnnotations() | public void | removeVersioningListener(VersioningListener listener) | public void | setIgnored(File[] files) Adds all supplied files to 'cvsignore' file. | void | setNotUnignored(File file) | public void | setNotignored(File[] files) | public void | setParameter(Object key, Object value) | void | shutdown() | public void | versionedFilesChanged() |
EVENT_PARAM_CHANGED | final public static Object EVENT_PARAM_CHANGED(Code) | | |
EVENT_REFRESH_ANNOTATIONS | final public static Object EVENT_REFRESH_ANNOTATIONS(Code) | | |
EVENT_VERSIONED_FILES_CHANGED | final public static Object EVENT_VERSIONED_FILES_CHANGED(Code) | | |
FILENAME_CVSIGNORE | final public static String FILENAME_CVSIGNORE(Code) | | |
FILENAME_CVS_ENTRIES | final public static String FILENAME_CVS_ENTRIES(Code) | | |
FILENAME_CVS_REPOSITORY | final public static String FILENAME_CVS_REPOSITORY(Code) | | |
PARAM_BATCH_REFRESH_RUNNING | final public static Object PARAM_BATCH_REFRESH_RUNNING(Code) | | |
createGlobalOptions | public static GlobalOptions createGlobalOptions()(Code) | | Creates new GlobalOptions prefilled with default options:
- compression level 3 if not enabled logging
|
detectCvsRoot | String detectCvsRoot(Command cmd) throws NotVersionedException(Code) | | Determines CVS root for the given command.
Parameters: cmd - a CVS command CVSRoot the command will execute in throws: NotVersionedException - if the root cannot be determined (no CVS/Root file or unsupported command) |
getAdminHandler | public AdminHandler getAdminHandler()(Code) | | |
getClientRuntime | public ClientRuntime getClientRuntime(String cvsRoot)(Code) | | Determines correct CVS client from the given cvs root.
Parameters: cvsRoot - root never null |
getClientRuntime | public ClientRuntime getClientRuntime(Command cmd, GlobalOptions options)(Code) | | Gets client runtime (a repository session).
runtime never null |
getDefaultKeywordSubstitution | public KeywordSubstitutionOptions getDefaultKeywordSubstitution(File file)(Code) | | |
getFileHandler | public FileHandler getFileHandler()(Code) | | |
getGzippedFileHandler | public FileHandler getGzippedFileHandler()(Code) | | |
getOriginalFile | public void getOriginalFile(File workingCopy, File originalFile)(Code) | | |
getTopmostManagedParent | File getTopmostManagedParent(File file)(Code) | | Tests whether the file is managed by this versioning system. If it is, the method should return the topmost
parent of the file that is still versioned.
Parameters: file - a file File the file itself or one of its parents or null if the supplied file is NOT managed by this versioning system |
isBinary | public boolean isBinary(File file)(Code) | | Uses first 1024 bytes test. A control byte means binary.
true if the file is almost certainly binary. |
isIgnored | boolean isIgnored(File file)(Code) | | Checks if the file is ignored by CVS module. This method assumes that the file is managed so
if you do not know this beforehand, you have to call isManaged() first.
Parameters: file - file to be tested true, if the file is ignored by CVS, false otherwise. |
isIgnoredFilename | public boolean isIgnoredFilename(File file)(Code) | | |
isManaged | boolean isManaged(File file)(Code) | | Tests whether a file or directory should receive the STATUS_NOTVERSIONED_NOTMANAGED status.
All files and folders that have a parent with CVS/Repository file are considered versioned.
Parameters: file - a file or directory false if the file should receive the STATUS_NOTVERSIONED_NOTMANAGED status, true otherwise |
isText | public boolean isText(File file)(Code) | | true if the file is almost certainly textual. |
isUnignored | boolean isUnignored(File file)(Code) | | Returns true for files that were originally ignored by default (.exe files for example) but the user
explicitly invoked CVS/Unignore on them.
Parameters: file - a file to test true if the file was explicitly Unignored by user |
post | public RequestProcessor.Task post(Command cmd, ExecutorSupport mgr) throws CommandException, AuthenticationException, NotVersionedException, IllegalCommandException, IOException(Code) | | Executes this command asynchronously, in a separate thread, and returns immediately. The command may
or may not execute immediately, depending on previous commands sent to the CVS client that may be
still waiting for execution.
Parameters: cmd - command to execute Parameters: mgr - listener for events the command produces throws: CommandException - throws: AuthenticationException - |
post | public RequestProcessor.Task post(Command cmd, GlobalOptions options, ExecutorSupport mgr) throws IllegalCommandException(Code) | | Schedules given command for execution.
Parameters: cmd - Parameters: options - Global options to use, may be set to null to use default options Parameters: mgr - already scheduled task throws: IllegalCommandException - if the command is not valid, e.g. it contains files that cannot beprocessed by a single command (they do not have a common filesystem root OR their CVS Roots differ) |
refreshAllAnnotations | public void refreshAllAnnotations()(Code) | | |
setIgnored | public void setIgnored(File[] files)(Code) | | Adds all supplied files to 'cvsignore' file. They need not reside in the same folder.
Parameters: files - files to ignore |
setNotUnignored | void setNotUnignored(File file)(Code) | | |
setNotignored | public void setNotignored(File[] files)(Code) | | |
shutdown | void shutdown()(Code) | | |
versionedFilesChanged | public void versionedFilesChanged()(Code) | | |
|
|