|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.filesystems.FileSystem org.openide.filesystems.AbstractFileSystem org.netbeans.modules.vcscore.VcsFileSystem
Generic VCS filesystem.
Nested Class Summary | |
static interface |
VcsFileSystem.IgnoreListSupport
Profile entry point to plug-in specifics ignore list implementation (here commands CMD_CREATE_FOLDER_IGNORE_LIST, CMD_CREATE_INITIAL_IGNORE_LIST). |
Nested classes inherited from class org.openide.filesystems.AbstractFileSystem |
AbstractFileSystem.Attr, AbstractFileSystem.Change, AbstractFileSystem.Info, AbstractFileSystem.List, AbstractFileSystem.Transfer |
Nested classes inherited from class org.openide.filesystems.FileSystem |
FileSystem.AtomicAction, FileSystem.Environment, FileSystem.HtmlStatus, FileSystem.Status |
Field Summary | |
protected boolean |
deserialized
|
static String |
PROP_ANNOTATION_PATTERN
|
static String |
PROP_ANNOTATION_TYPES
|
static String |
PROP_CALL_EDIT
|
static String |
PROP_CALL_EDIT_PROMPT
|
static String |
PROP_CALL_LOCK
|
static String |
PROP_CALL_LOCK_PROMPT
|
static String |
PROP_COMMAND_NOTIFICATION
|
static String |
PROP_COMMANDS
|
static String |
PROP_CREATE_BACKUP_FILES
|
static String |
PROP_CREATE_RUNTIME_COMMANDS
|
static String |
PROP_CREATE_VERSIONING_EXPLORER
|
static String |
PROP_DEBUG
|
static String |
PROP_EXPERT_MODE
|
static String |
PROP_FILE_FILTER
|
protected static String |
PROP_NOT_MODIFIABLE_STATUSES
|
static String |
PROP_PASSWORD
|
static String |
PROP_PROCESS_UNIMPORTANT_FILES
|
static String |
PROP_PROMPT_FOR_VARS_FOR_EACH_FILE
|
static String |
PROP_REMEMBER_PASSWORD
|
protected static String |
PROP_USE_UNIX_SHELL
|
static String |
PROP_VARIABLES
|
static String |
PROP_VCS_REFRESH_TIME
|
protected boolean |
ready
|
protected static int |
REFRESH_TIME
|
protected int |
refreshTimeToSet
|
protected Image |
statusIconDefault
The default icon badge, that is used when no icon can be obtained from statusIconMap . |
protected FileStatusProvider |
statusProvider
|
static String |
VAR_CTRL_DOWN_IN_ACTION
If Expert mode is off.. |
static String |
VAR_ENVIRONMENT_PREFIX
This is a prefix, for environment variable. |
static String |
VAR_ENVIRONMENT_REMOVE_PREFIX
This is a prefix, for environment variable, that should be removed from the command environment. |
static String |
VAR_EXPERT_MODE
The test on this variable can be performed in the exec string to decide what options to use or what to ask the user for. |
static String |
VAR_FALSE
|
static String |
VAR_FS_DISPLAY_NAME
This variable can contain the display name, which is prepended to the root path of the file system to create the display name. |
static String |
VAR_FS_DISPLAY_NAME_ANNOTATION
This variable can contain the whole annotation of file system display name. |
static String |
VAR_FS_SYSTEM_NAME_ANNOTATION
This variable can contain the whole annotation of file system system name. |
static String |
VAR_LOCKER_USER_NAME
The user name of current user, that locks files. |
static String |
VAR_QUOTING
The value of this variable is used to surround file names. |
static String |
VAR_STATUS_SCHEDULED_ADD
|
static String |
VAR_STATUS_SCHEDULED_REMOVE
|
static String |
VAR_TRUE
|
static String |
VAR_VCS_TYPE
The unique type of VCS that is provided. |
protected Hashtable |
variablesByName
|
static String |
VCS_FILESYSTEM_ICON_BASE
|
static String |
VCS_PROVIDER_ATTRIBUTE
|
Fields inherited from class org.openide.filesystems.AbstractFileSystem |
attr, change, info, list, transfer |
Fields inherited from class org.openide.filesystems.FileSystem |
PROP_DISPLAY_NAME, PROP_HIDDEN, PROP_READ_ONLY, PROP_ROOT, PROP_SYSTEM_NAME, PROP_VALID |
Fields inherited from interface org.netbeans.modules.vcscore.search.VcsSearchTypeFileSystem |
VCS_SEARCH_TYPE_ATTRIBUTE |
Constructor Summary | |
VcsFileSystem()
Create a new VCS filesystem. |
Method Summary | |
void |
activate(org.netbeans.modules.vcscore.objectintegrity.VcsObjectIntegritySupport objectIntegritySupport)
|
void |
addEnvironmentVar(String key,
String value)
|
void |
addFilesStructureModificationListener(ChangeListener chl)
|
void |
addRevisionListener(RevisionListener listener)
|
Image |
annotateIcon(Image icon,
int iconType,
Set files)
|
String |
annotateName(String name,
Set files)
Annotate the set of files with additional version control attributes. |
String |
annotateNameHtml(String name,
Set files)
|
protected void |
callDeleteCommand(String name,
boolean isDir)
When a file or folder was deleted, a command DELETE_FILE or DELETE_DIR is called. |
void |
checkForModifications(String path)
Should be called when the modification in a file or folder is expected and its content should be refreshed. |
void |
checkForModifications(String path,
boolean recursively,
boolean refreshData,
boolean refreshFolders)
Should be called when the modification in a file or folder is expected and its content should be refreshed. |
protected boolean |
checkVirtual(String name)
This method is called from AbstractFileObject.isVirtual. |
protected void |
checkVirtualFiles(Collection foSet)
Perform the check of whether the file is or is not still virtual. |
String[] |
children(String name)
|
protected String |
computeDisplayName()
|
protected String |
computeSystemName(File rootFile)
Compute the system name of this file system for a given root directory. |
protected void |
createBackupFile(String name)
|
void |
createData(String name)
Create new data file. |
void |
createFolder(String name)
|
protected Reference |
createReference(FileObject fo)
Creates Reference. |
protected void |
createVersioningFileSystem()
|
void |
debug(String msg)
Print a debug output. |
void |
debugClear()
Clear the debug output. |
void |
debugErr(String msg)
Print an error output. |
void |
delete(String name)
Delete working file. |
protected boolean |
deleteFile(File file,
String name)
|
void |
disableRefresh()
|
void |
doVirtualsRefresh(FileObject fo)
Do the refresh of a folder. |
void |
enableRefresh()
|
void |
filePromptDocumentCleanup(JTextArea ta,
int promptNum,
Object docIdentif)
Allows some cleanup of the document which the user is asked for. |
FileObject |
findExistingResource(String name)
Find the existing resource on this file system. |
FileObject |
findFileObject(String fullName)
Find the file object from a file path. |
protected void |
fireFilesStructureModified(File file)
|
void |
fireRevisionsChanged(RevisionEvent event)
|
boolean |
folder(String name)
Test if the file is folder or contains data. |
protected String |
g(String s)
|
protected String |
g(String s,
Object obj)
|
protected String |
g(String s,
Object obj1,
Object obj2)
|
protected String |
g(String s,
Object obj1,
Object obj2,
Object obj3)
|
SystemAction[] |
getActions()
Get the VCS actions. |
SystemAction[] |
getActions(Set fos)
Get the VCS actions on a collection of FileObject s. |
String |
getAnnotationPattern()
|
boolean |
getAskIfDownloadRecursively()
|
int |
getAutoRefresh()
Get the mode of auto refresh. |
protected String |
getBackupExtension()
|
String |
getBundleProperty(String s)
|
String |
getBundleProperty(String s,
Object obj)
|
abstract File |
getCacheFileName(File folder,
String folderPath)
Get the full file path where cache information should be stored. |
abstract String |
getCacheFileName(String path)
Get the full file path where cache information should be stored. |
String |
getCacheIdStr()
Get the cache identification. |
VcsCommand |
getCommand(String name)
Deprecated. Retained for compatibility reasons only to be able to use the old VCS "API" for commands execution. Use #getCommandSupport() instead. |
CommandsTree |
getCommands()
Get the commands. |
protected InputOutput |
getCommandsIO()
|
CommandsPool |
getCommandsPool()
Deprecated. For compatibility only |
VcsCommandsProvider |
getCommandsProvider()
|
CommandSupport |
getCommandSupport(String name)
Get a command support by it's name. |
int |
getCustomRefreshTime()
|
boolean |
getDebug()
|
String |
getDisplayName()
Get a human presentable name of the file system |
boolean |
getDoAutoRefresh(String path)
Get whether to perform the auto-refresh in the given directory path. |
String[] |
getEnvironmentVars()
Get the environment variables and their values in the form: "VAR1=Value1", "VAR2=Value2", etc. |
Enumeration |
getExistingFiles()
Returns all existing files in the file system. |
Enumeration |
getExistingFolders()
Returns all existing files in the file system (both folders and data). |
File |
getFile(String name)
Get file representation for given string name. |
FilenameFilter |
getFileFilter()
Get the filename filter of this file system. |
protected FileReference |
getFileReference(String name)
Utility method that find the fileobject reference and if it exists, retypes it to FileReference. |
String |
getFSRoot()
Return the working directory of the file system. |
Map |
getGenericStatusTranslation()
Get the map of generic file status names (that are defined in FileStatusInfo class) as keys and translated file status names (that are provided in the possibleFileStatusInfos set) as values. |
VcsFileSystem.IgnoreListSupport |
getIgnoreListSupport()
|
int[] |
getMultiFileAnnotationTypes()
|
int |
getNumberOfFinishedCmdsToCollect()
|
int |
getNumDoAutoRefresh(String path)
Get the number of command calls after which perform the auto-refresh command in the given path. |
String |
getPassword()
|
String |
getPasswordDescription()
Get the description of the password, typically the name of the service that requests the password. |
String[] |
getPossibleFileStatuses()
It should return all possible VCS states in which the files in the filesystem can reside. |
Map |
getPossibleFileStatusInfoMap()
Get the map of possible pairs of status name and corresponding FileStatusInfo object. |
Set |
getPossibleFileStatusInfos()
Get the set of all possible FileStatusInfo objects. |
String |
getPreferredSystemName()
Get a preferred system name of the filesystem. |
String |
getRelativeMountPoint()
|
File |
getRootDirectory()
Get the root directory of the file system. |
String[] |
getStates(DataObject dobj)
Get states of all important files inside the DataObject. |
FileSystem.Status |
getStatus()
|
String |
getStatus(FileObject fo)
|
static RequestProcessor |
getStatusChangeRequestProcessor()
Get a special request processor, that is used to refresh the file status. |
FileStatusProvider |
getStatusProvider()
Get the provider of file status attributes. |
String[] |
getUserLocalParamsLabels()
|
String[] |
getUserParams()
|
String[] |
getUserParamsLabels()
|
Vector |
getVariables()
If this is FileSystem, take it from there! If not, get abolute paths. |
Hashtable |
getVariablesAsHashtable()
|
VariableValueAdjustment |
getVarValueAdjustment()
Get the variable value adjustment utility object. |
protected VcsActionSupporter |
getVcsActionSupporter()
|
protected VcsAttributes |
getVcsAttributes()
|
VcsFactory |
getVcsFactory()
Gets the default factory DefaultVcsFactory . |
protected AbstractFileSystem.Info |
getVcsInfo()
|
protected AbstractFileSystem.List |
getVcsList()
|
protected int |
getVcsRefreshTime()
Get the number of milliseconds between automatic refreshes of the directory structure. |
VersioningFileSystem |
getVersioningFileSystem()
|
int |
getVFSMessageLength()
|
boolean |
getVFSShowDeadFiles()
|
boolean |
getVFSShowLocalFiles()
|
boolean |
getVFSShowMessage()
|
boolean |
getVFSShowUnimportantFiles()
|
protected void |
init()
Perform some initialization job. |
String |
initCacheIdStr()
Initialize the identification of cache used. |
InputStream |
inputStream(String name)
Get input stream to a file. |
boolean |
isAcceptUserParams()
|
boolean |
isCallEditFilesOn()
|
boolean |
isCommandNotification()
|
boolean |
isCreateBackupFiles()
|
protected boolean |
isCreateBackupFilesSet()
|
boolean |
isCreateRuntimeCommands()
|
protected boolean |
isCreateVersioningSystem()
|
boolean |
isEnabledEditFiles()
|
boolean |
isEnabledLockFiles()
|
boolean |
isExpertMode()
|
boolean |
isHideShadowFiles()
Whether to hide files, which does not exist locally. |
boolean |
isImportant(String name)
Returns true when the given file is sharable. |
boolean |
isLockFilesOn()
|
boolean |
isOffLine()
|
boolean |
isProcessUnimportantFiles()
|
boolean |
isPromptForEditOn()
|
boolean |
isPromptForLockOn()
|
boolean |
isPromptForVarsForEachFile()
Whether to prompt the user for variables for each selected file. |
boolean |
isReadOnly()
|
boolean |
isRememberPassword()
|
boolean |
isShowDeadFiles()
|
boolean |
isUseUnixShell()
|
Date |
lastModified(String name)
Get last modification time. |
void |
lock(String name)
Run the LOCK command to lock the file. |
static boolean |
lockerMatch(String lockerAttribute,
String lockerUserName)
Test whether the current user has locked file with given locker attribute. |
void |
lockFilesToBeModified(String path,
boolean recursively)
Lock the files so that they can not be modified in the IDE. |
void |
markUnimportant(String name)
|
String |
mimeType(String name)
|
protected void |
notifyFSAdded()
Notifies this file system that it has been added to the repository. |
protected void |
notifyFSRemoved()
Notifies this file system that it has been removed from the repository. |
OutputStream |
outputStream(String name)
Get output stream to a file. |
boolean |
readOnly(String name)
Test whether this file can be written to or not. |
void |
refreshExistingFolders()
Instruct FS to refrest folders, XXX asynchronous operation. |
protected void |
refreshExistingFolders(String name)
|
void |
removeFilesStructureModificationListener(ChangeListener chl)
|
void |
removeNumDoAutoRefresh(String path)
Remove the number of command calls after which perform the auto-refresh command in the given path. |
boolean |
removeRevisionListener(RevisionListener listener)
|
protected void |
removeVersioningFileSystem()
|
void |
rename(String oldName,
String newName)
Rename a file. |
void |
setAcceptUserParams(boolean acceptUserParams)
|
protected void |
setAdditionalFileFilter(FilenameFilter additionalFileFilter)
The subclasses can define their own filename filter. |
void |
setAdjustedSystemName(String name)
Modified to never throw PropertyVetoException by the name adjustment. |
void |
setAnnotationPattern(String annotationPattern)
|
void |
setAskIfDownloadRecursively(boolean ask)
|
void |
setAutoRefresh(int newAuto)
Set the mode of auto refresh. |
void |
setCallEditFilesOn(boolean edit)
|
void |
setCommandNotification(boolean commandNotification)
|
void |
setCommands(CommandsTree root)
Set the tree structure of commands. |
void |
setCreateBackupFiles(boolean createBackupFiles)
|
protected void |
setCreateRuntimeCommands(boolean createRuntimeCommands)
|
protected void |
setCreateVersioningSystem(boolean createVersioningSystem)
|
void |
setCustomRefreshTime(int time)
|
void |
setDebug(boolean debug)
|
void |
setEnvironmentVar(String key,
String value)
|
void |
setExpertMode(boolean expertMode)
|
void |
setHideShadowFiles(boolean hideShadowFiles)
Set whether to hide files, which does not exist locally. |
void |
setIgnoreListSupport(VcsFileSystem.IgnoreListSupport support)
|
void |
setLockFilesOn(boolean lock)
|
protected void |
setMissingFileStatus(String missingFileStatus)
|
protected void |
setMissingFolderStatus(String missingFolderStatus)
|
void |
setMultiFileAnnotationTypes(int[] multiFileAnnotationTypes)
|
protected void |
setNotMissingableFileStatuses(Collection notMissingableFileStatuses)
|
protected void |
setNotMissingableFolderStatuses(Collection notMissingableFolderStatuses)
|
protected void |
setNotModifiableStatuses(Collection notModifiableStatuses)
VCS specifics set of statuses that does not undergo automatic transtition to [modified] on file edit. |
void |
setNumberOfFinishedCmdsToCollect(int numberOfFinishedCmdsToCollect)
|
void |
setNumDoAutoRefresh(int numDoAutoRefresh,
String path)
Set how many times I call a command after which the auto-refresh is executed in the given path. |
void |
setOffLine(boolean offLine)
|
void |
setPassword(String password)
|
protected void |
setPossibleFileStatusInfos(Set fileStatusInfos,
Map genericStatusTranslation)
Set a set of all possible FileStatusInfo objects. |
void |
setPreferredSystemName(String preferredSystemName)
Set a preferred system name of the filesystem. |
void |
setProcessUnimportantFiles(boolean processUnimportantFiles)
|
void |
setPromptForEditOn(boolean prompt)
|
void |
setPromptForLockOn(boolean prompt)
|
void |
setPromptForVarsForEachFile(boolean promptForVarsForEachFile)
Set whether to prompt the user for variables for each selected file. |
void |
setReadOnly(boolean flag)
Set whether the file system should be read only. |
void |
setRefreshTimeToSet()
|
void |
setRelativeMountPoint(String module)
|
void |
setRememberPassword(boolean remember)
|
void |
setRootDirectory(File r)
Set the root directory of the file system. |
protected void |
setRootDirectory(File r,
boolean forceToSet)
Set the root directory of the file system. |
void |
setShowDeadFiles(boolean showDeadFiles)
|
void |
setUserLocalParamsLabels(String[] labels)
|
void |
setUserParams(String[] userParams)
|
void |
setUserParamsLabels(String[] labels)
|
protected void |
setUseUnixShell(boolean unixShell)
|
void |
setVariables(Vector variables)
Set the file system's variables. |
protected void |
setVcsRefreshTime(int ms)
Set the number of milliseconds between automatic refreshes of the directory structure. |
void |
setVFSMessageLength(int newVal)
|
void |
setVFSShowDeadFiles(boolean newVal)
|
void |
setVFSShowLocalFiles(boolean newVal)
|
void |
setVFSShowMessage(boolean newVal)
|
void |
setVFSShowUnimportantFiles(boolean newVal)
|
void |
setZeroRefreshTime()
|
protected boolean |
shouldLock(String name)
Whether the LOCK command should be performed for this file. |
long |
size(String name)
Get the size of a file. |
void |
statusChanged(String name)
Fire status chnage information of a file. |
void |
statusChanged(String path,
boolean recursively)
Perform refresh of status information on all children of a directory |
static String |
substractRootDir(String rDir,
String module)
|
void |
turboChanged(TurboEvent e)
Does nothing to mark the file as unimportant. |
void |
unlock(String name)
Call the UNLOCK command to unlock the file. |
void |
unlockFilesToBeModified(String path,
boolean recursively)
Unlock the files that were previously locked by lockFilesToBeModified(java.lang.String, boolean)
method. |
void |
variableChanged(String name)
Notify the filesystem, that an variable has changed and should be saved. |
protected void |
warnDirectoriesDoNotExists()
|
Methods inherited from class org.openide.filesystems.AbstractFileSystem |
canRead, canWrite, existingFileObjects, find, findReference, findResource, getRefreshTime, getRoot, markImportant, refresh, refreshResource, refreshRoot, setRefreshTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String VCS_PROVIDER_ATTRIBUTE
public static final String VCS_FILESYSTEM_ICON_BASE
public static final String PROP_VARIABLES
public static final String PROP_COMMANDS
public static final String PROP_DEBUG
public static final String PROP_CALL_EDIT
public static final String PROP_CALL_EDIT_PROMPT
public static final String PROP_CALL_LOCK
public static final String PROP_CALL_LOCK_PROMPT
public static final String PROP_EXPERT_MODE
public static final String PROP_PROCESS_UNIMPORTANT_FILES
public static final String PROP_ANNOTATION_PATTERN
public static final String PROP_ANNOTATION_TYPES
public static final String PROP_COMMAND_NOTIFICATION
public static final String PROP_PASSWORD
public static final String PROP_REMEMBER_PASSWORD
public static final String PROP_CREATE_RUNTIME_COMMANDS
public static final String PROP_CREATE_VERSIONING_EXPLORER
public static final String PROP_CREATE_BACKUP_FILES
public static final String PROP_PROMPT_FOR_VARS_FOR_EACH_FILE
public static final String PROP_VCS_REFRESH_TIME
public static final String PROP_FILE_FILTER
protected static final String PROP_USE_UNIX_SHELL
protected static final String PROP_NOT_MODIFIABLE_STATUSES
public static final String VAR_TRUE
public static final String VAR_FALSE
public static final String VAR_QUOTING
public static final String VAR_EXPERT_MODE
public static final String VAR_CTRL_DOWN_IN_ACTION
public static final String VAR_FS_DISPLAY_NAME
public static final String VAR_FS_DISPLAY_NAME_ANNOTATION
public static final String VAR_FS_SYSTEM_NAME_ANNOTATION
public static final String VAR_ENVIRONMENT_PREFIX
public static final String VAR_ENVIRONMENT_REMOVE_PREFIX
public static final String VAR_STATUS_SCHEDULED_ADD
public static final String VAR_STATUS_SCHEDULED_REMOVE
public static final String VAR_VCS_TYPE
public static final String VAR_LOCKER_USER_NAME
protected static final int REFRESH_TIME
protected volatile int refreshTimeToSet
protected Hashtable variablesByName
protected transient FileStatusProvider statusProvider
protected transient Image statusIconDefault
statusIconMap
.
protected boolean ready
protected transient boolean deserialized
Constructor Detail |
public VcsFileSystem()
Method Detail |
public boolean isLockFilesOn()
public void setLockFilesOn(boolean lock)
public boolean isPromptForLockOn()
public void setPromptForLockOn(boolean prompt)
public boolean getAskIfDownloadRecursively()
public void setAskIfDownloadRecursively(boolean ask)
public boolean isCallEditFilesOn()
public void setCallEditFilesOn(boolean edit)
public boolean isPromptForEditOn()
public void setPromptForEditOn(boolean prompt)
public boolean isUseUnixShell()
public boolean isEnabledLockFiles()
public boolean isEnabledEditFiles()
protected void setUseUnixShell(boolean unixShell)
public void setAcceptUserParams(boolean acceptUserParams)
public boolean isAcceptUserParams()
isAcceptUserParams
in interface CommandExecutionContext
public void setUserLocalParamsLabels(String[] labels)
public String[] getUserLocalParamsLabels()
getUserLocalParamsLabels
in interface CommandExecutionContext
public void setUserParamsLabels(String[] labels)
public String[] getUserParamsLabels()
getUserParamsLabels
in interface CommandExecutionContext
public void setUserParams(String[] userParams)
setUserParams
in interface CommandExecutionContext
public String[] getUserParams()
getUserParams
in interface CommandExecutionContext
public void setExpertMode(boolean expertMode)
public boolean isExpertMode()
isExpertMode
in interface CommandExecutionContext
public void setCommandNotification(boolean commandNotification)
setCommandNotification
in interface CommandExecutionContext
public boolean isCommandNotification()
isCommandNotification
in interface CommandExecutionContext
public void setPromptForVarsForEachFile(boolean promptForVarsForEachFile)
setPromptForVarsForEachFile
in interface CommandExecutionContext
public boolean isPromptForVarsForEachFile()
isPromptForVarsForEachFile
in interface CommandExecutionContext
public CommandsPool getCommandsPool()
public void setProcessUnimportantFiles(boolean processUnimportantFiles)
public boolean isProcessUnimportantFiles()
public void refreshExistingFolders()
protected void refreshExistingFolders(String name)
protected boolean isCreateBackupFilesSet()
public boolean isCreateBackupFiles()
public void setCreateBackupFiles(boolean createBackupFiles)
public void setOffLine(boolean offLine)
public boolean isOffLine()
isOffLine
in interface CommandExecutionContext
public int getAutoRefresh()
public void setAutoRefresh(int newAuto)
public boolean isHideShadowFiles()
public void setHideShadowFiles(boolean hideShadowFiles)
public boolean isShowDeadFiles()
public void setShowDeadFiles(boolean showDeadFiles)
public int getNumberOfFinishedCmdsToCollect()
public void setNumberOfFinishedCmdsToCollect(int numberOfFinishedCmdsToCollect)
public int getVFSMessageLength()
public void setVFSMessageLength(int newVal)
public boolean getVFSShowLocalFiles()
public void setVFSShowLocalFiles(boolean newVal)
public boolean getVFSShowMessage()
public void setVFSShowMessage(boolean newVal)
public boolean getVFSShowUnimportantFiles()
public void setVFSShowUnimportantFiles(boolean newVal)
public boolean getVFSShowDeadFiles()
public void setVFSShowDeadFiles(boolean newVal)
public void addRevisionListener(RevisionListener listener)
public boolean removeRevisionListener(RevisionListener listener)
public void fireRevisionsChanged(RevisionEvent event)
protected void setNotModifiableStatuses(Collection notModifiableStatuses)
protected void setMissingFileStatus(String missingFileStatus)
protected void setMissingFolderStatus(String missingFolderStatus)
protected void setNotMissingableFileStatuses(Collection notMissingableFileStatuses)
protected void setNotMissingableFolderStatuses(Collection notMissingableFolderStatuses)
public boolean getDoAutoRefresh(String path)
path
- The given directory pathpublic void setNumDoAutoRefresh(int numDoAutoRefresh, String path)
numDoAutoRefresh
- The number of auto-refreshespath
- The given directory pathpublic int getNumDoAutoRefresh(String path)
path
- The given pathpublic void removeNumDoAutoRefresh(String path)
path
- The given pathprotected final void setVcsRefreshTime(int ms)
ms
- number of milliseconds between two refreshes; if <= 0
then refreshing is disabledprotected final int getVcsRefreshTime()
0
if refreshing is disabledpublic Enumeration getExistingFolders()
getExistingFolders
in interface org.netbeans.modules.vcscore.util.virtuals.VirtualsRefreshing
public Enumeration getExistingFiles()
getExistingFiles
in interface FileObjectExistence
public void doVirtualsRefresh(FileObject fo)
doVirtualsRefresh
in interface org.netbeans.modules.vcscore.util.virtuals.VirtualsRefreshing
public String getFSRoot()
public String getRelativeMountPoint()
public void setRelativeMountPoint(String module) throws PropertyVetoException, IOException
PropertyVetoException
IOException
public void markUnimportant(String name)
markUnimportant
in interface AbstractFileSystem.Info
public boolean isImportant(String name)
name
- The file name relative to FS rootpublic static RequestProcessor getStatusChangeRequestProcessor()
public void statusChanged(String path, boolean recursively)
path
- the directory pathpublic void statusChanged(String name)
name
- the full file name (path to root)public FileObject findExistingResource(String name)
public void disableRefresh()
public void enableRefresh()
public void setRefreshTimeToSet()
public void setCustomRefreshTime(int time)
public int getCustomRefreshTime()
public void setZeroRefreshTime()
protected InputOutput getCommandsIO()
public void debugClear()
public void debug(String msg)
debug
in interface CommandExecutionContext
msg
- The message to print out.public void debugErr(String msg)
debugErr
in interface CommandExecutionContext
msg
- the message to print out.protected Reference createReference(FileObject fo)
fo
- is FileObject. It`s reference yourequire to get.
protected final FileReference getFileReference(String name)
name
- pathname of the resource.
public FileStatusProvider getStatusProvider()
public abstract String getCacheFileName(String path)
public abstract File getCacheFileName(File folder, String folderPath)
folder
- subject of searchfolderPath
- io.file path relative to FS root.public String initCacheIdStr()
public String getCacheIdStr()
public VcsCommandsProvider getCommandsProvider()
getCommandsProvider
in interface CommandExecutionContext
public VcsFactory getVcsFactory()
DefaultVcsFactory
. Subclasses may override this to return different instance of VcsFactory
.
protected void init()
public void activate(org.netbeans.modules.vcscore.objectintegrity.VcsObjectIntegritySupport objectIntegritySupport)
activate
in interface org.netbeans.modules.vcscore.objectintegrity.VcsOISActivator
protected AbstractFileSystem.List getVcsList()
protected AbstractFileSystem.Info getVcsInfo()
protected void notifyFSAdded()
protected void notifyFSRemoved()
protected final void createVersioningFileSystem()
protected final void removeVersioningFileSystem()
protected void setCreateRuntimeCommands(boolean createRuntimeCommands)
public boolean isCreateRuntimeCommands()
protected void setCreateVersioningSystem(boolean createVersioningSystem)
protected boolean isCreateVersioningSystem()
public VersioningFileSystem getVersioningFileSystem()
protected VcsActionSupporter getVcsActionSupporter()
protected VcsAttributes getVcsAttributes()
public String[] getPossibleFileStatuses()
org.netbeans.modules.vcscore.search.VcsSearchTypeFileSystem
getPossibleFileStatuses
in interface org.netbeans.modules.vcscore.search.VcsSearchTypeFileSystem
public Map getPossibleFileStatusInfoMap()
getPossibleFileStatusInfoMap
in interface CommandExecutionContext
public Set getPossibleFileStatusInfos()
public Map getGenericStatusTranslation()
protected final void setPossibleFileStatusInfos(Set fileStatusInfos, Map genericStatusTranslation)
fileStatusInfos
- The set of FileStatusInfo objectsgenericStatusTranslation
- The map of generic file status names
(that are defined in FileStatusInfo class) as keys and translated
file status names (that are provided in the fileStatusInfos set)
as values.public void setDebug(boolean debug)
public boolean getDebug()
public String[] getEnvironmentVars()
getEnvironmentVars
in interface CommandExecutionContext
public void addEnvironmentVar(String key, String value)
public void setEnvironmentVar(String key, String value)
public Vector getVariables()
CommandExecutionContext
getVariables
in interface CommandExecutionContext
public VariableValueAdjustment getVarValueAdjustment()
getVarValueAdjustment
in interface CommandExecutionContext
public void variableChanged(String name)
name
- the name of a changed variables. If null
we suppose,
that all variables changed.public void setVariables(Vector variables)
setVariables
in interface CommandExecutionContext
variables
- the vector of VcsConfigVariable
objects.public static String substractRootDir(String rDir, String module)
public Hashtable getVariablesAsHashtable()
getVariablesAsHashtable
in interface CommandExecutionContext
public void setPassword(String password)
setPassword
in interface CommandExecutionContext
public String getPassword()
getPassword
in interface CommandExecutionContext
public void setRememberPassword(boolean remember)
public boolean isRememberPassword()
public String getPasswordDescription()
This method returns null
by default, subclasses are expected
to override this method and return meaningful value.
getPasswordDescription
in interface CommandExecutionContext
null
when no description is available.public void filePromptDocumentCleanup(JTextArea ta, int promptNum, Object docIdentif)
filePromptDocumentCleanup
in interface VariableInputDialog.FilePromptDocumentListener
protected void warnDirectoriesDoNotExists()
public String getAnnotationPattern()
public void setAnnotationPattern(String annotationPattern) throws IllegalArgumentException
IllegalArgumentException
public int[] getMultiFileAnnotationTypes()
public void setMultiFileAnnotationTypes(int[] multiFileAnnotationTypes)
public FileSystem.Status getStatus()
public String getStatus(FileObject fo)
public String[] getStates(DataObject dobj)
getStates
in interface org.netbeans.modules.vcscore.search.VcsSearchTypeFileSystem
dobj
- The DataObject
public Image annotateIcon(Image icon, int iconType, Set files)
annotateIcon
in interface FileSystem.Status
public String annotateNameHtml(String name, Set files)
annotateNameHtml
in interface FileSystem.HtmlStatus
public FileObject findFileObject(String fullName)
fullName
- the full path to the file
public String annotateName(String name, Set files)
annotateName
in interface FileSystem.Status
name
- the original annotationfiles
- the files to annotate
public SystemAction[] getActions()
VcsFactory.getActions(null)
public SystemAction[] getActions(Set fos)
FileObject
s.
fos
- the collection of FileObject
s to act on.
VcsFactory.getActions(fos)
protected String computeDisplayName()
public final String getDisplayName()
public void setRootDirectory(File r) throws PropertyVetoException, IOException
r
- file to set root to plus module name
PropertyVetoException
- if the value if vetoed by someone else (usually
by the Repository
)
IOException
- if the root does not exists or some other error occuredprotected final void setRootDirectory(File r, boolean forceToSet) throws PropertyVetoException, IOException
r
- file to set root to plus module name
PropertyVetoException
- if the value if vetoed by someone else (usually
by the Repository
)
IOException
- if the root does not exists or some other error occuredpublic void setAdjustedSystemName(String name)
public File getRootDirectory()
public void setReadOnly(boolean flag)
flag
- true
if it shouldpublic boolean isReadOnly()
protected String computeSystemName(File rootFile)
The default implementation simply returns the filename separated by slashes or looks for special system name annotation variable. This method also assures, that the system name will be unique among mounted filesystems. Thus when this filesystem will be mounted it will not be invalidated.
rootFile
- root directory for the filesystem
FileSystem.setSystemName(java.lang.String)
public void setPreferredSystemName(String preferredSystemName)
public String getPreferredSystemName()
public File getFile(String name)
name
- the name
public String[] children(String name)
children
in interface AbstractFileSystem.List
public void lockFilesToBeModified(String path, boolean recursively)
unlockFilesToBeModified(java.lang.String, boolean)
after the command
finish.
path
- The path of the file to be locked or directory in which all
files will be locked.recursively
- Whether the files in directories should be locked recursively.public void unlockFilesToBeModified(String path, boolean recursively)
lockFilesToBeModified(java.lang.String, boolean)
method. It's necessary to call this method with appropriate arguments after
the command finish so that the user can edit the files.
public void checkForModifications(String path)
checkForModifications
in interface CommandExecutionContext
public void checkForModifications(String path, boolean recursively, boolean refreshData, boolean refreshFolders)
public final void addFilesStructureModificationListener(ChangeListener chl)
addFilesStructureModificationListener
in interface FilesModificationSupport
public final void removeFilesStructureModificationListener(ChangeListener chl)
removeFilesStructureModificationListener
in interface FilesModificationSupport
protected final void fireFilesStructureModified(File file)
public void createFolder(String name) throws IOException
createFolder
in interface AbstractFileSystem.Change
IOException
public void createData(String name) throws IOException
createData
in interface AbstractFileSystem.Change
name
- name of the file
IOException
- if the file cannot be created (e.g. already exists)public void rename(String oldName, String newName) throws IOException
rename
in interface AbstractFileSystem.Change
oldName
- old name of the filenewName
- new name of the file
IOException
public void delete(String name) throws IOException
delete
in interface AbstractFileSystem.Change
name
- name of the file
IOException
- if the file could not be deletedprotected boolean deleteFile(File file, String name) throws IOException
IOException
protected void callDeleteCommand(String name, boolean isDir)
public Date lastModified(String name)
lastModified
in interface AbstractFileSystem.Info
name
- the file to test
public boolean folder(String name)
folder
in interface AbstractFileSystem.Info
name
- name of the file
public boolean readOnly(String name)
readOnly
in interface AbstractFileSystem.Info
name
- the file to test
true
if file is read-onlypublic String mimeType(String name)
mimeType
in interface AbstractFileSystem.Info
public long size(String name)
size
in interface AbstractFileSystem.Info
name
- the file to test
public InputStream inputStream(String name) throws FileNotFoundException
inputStream
in interface AbstractFileSystem.Info
name
- the file to test
FileNotFoundException
- if the file does not exists or is invalidprotected String getBackupExtension()
protected void createBackupFile(String name) throws IOException
IOException
public OutputStream outputStream(String name) throws IOException
outputStream
in interface AbstractFileSystem.Info
name
- the file to test
IOException
- if an error occures (the file is invalid, etc.)public static boolean lockerMatch(String lockerAttribute, String lockerUserName)
lockerAttribute
- The file locker attribute. It can contain more
lockers separated by commas.lockerUserName
- The locker user name, or null
when
the system user name should be taken.
protected boolean shouldLock(String name)
The default implementation search for the locker status and compare with
the user name stored in VAR_LOCKER_USER_NAME
variable or user.name
system property.
The fact, that the locker property can contain more locker user names
delimited by commas is taken into account.
public void lock(String name) throws IOException
lock
in interface AbstractFileSystem.Info
name
- name of the file
IOException
public void unlock(String name)
unlock
in interface AbstractFileSystem.Info
name
- name of the filepublic void turboChanged(TurboEvent e)
turboChanged
in interface TurboListener
public void setCommands(CommandsTree root)
root
- the tree of VcsCommandNode
objects.public CommandsTree getCommands()
public VcsCommand getCommand(String name)
#getCommandSupport()
instead.
getCommand
in interface CommandExecutionContext
name
- the name of the command to get
null
,
when the command is not definedpublic CommandSupport getCommandSupport(String name)
getCommandSupport
in interface CommandExecutionContext
name
- the name of the command to get
null
,
when the command support is not definedprotected final void setAdditionalFileFilter(FilenameFilter additionalFileFilter)
public FilenameFilter getFileFilter()
protected boolean checkVirtual(String name)
name
- of the file
protected final void checkVirtualFiles(Collection foSet)
foSet
- set of FileObjects whose status was changedpublic String getBundleProperty(String s)
public String getBundleProperty(String s, Object obj)
public VcsFileSystem.IgnoreListSupport getIgnoreListSupport()
public void setIgnoreListSupport(VcsFileSystem.IgnoreListSupport support)
protected String g(String s)
protected String g(String s, Object obj)
protected String g(String s, Object obj1, Object obj2)
protected String g(String s, Object obj1, Object obj2, Object obj3)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |