|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The VcsCommand
interface should be implemented by any class
whose instances are intended to be executed by a VcsCommandExecutor.
Field Summary | |
static int |
EXEC_CONCURRENT_ALL
All execution of this command can be done concurrently with others. |
static int |
EXEC_SERIAL_ALL
Serial execution of all commands. |
static int |
EXEC_SERIAL_INERT
This command is inert with all other commands. |
static int |
EXEC_SERIAL_OF_COMMAND
Serial execution of commands of this name. |
static int |
EXEC_SERIAL_ON_FILE
Serial execution is guaranteed on each file. |
static int |
EXEC_SERIAL_ON_PACKAGE
Serial execution is guaranteed inside a single package. |
static int |
EXEC_SERIAL_WITH_PARENT
Serial execution of commands with respect to commands running on a parent folders. |
static int |
EXEC_SERIAL_WITH_PENDING
Serial execution even with respect to the pending commands, that are waiting for the actual execution. |
static String |
NAME_DELETE_DIR
The name of the command which will be called after a directory was deleted. |
static String |
NAME_DELETE_FILE
The name of the command which will be called after a file was deleted. |
static String |
NAME_EDIT
The name of the command which will be called to prepare the file for editing in VCS. |
static String |
NAME_LOCK
The name of the command which will be called to lock the file in VCS. |
static String |
NAME_REFRESH
The name of the command which does non recursive refresh of a folder. |
static String |
NAME_REFRESH_RECURSIVELY
The name of the command which does recursive refresh of a folder. |
static String |
NAME_REVISION_LIST
The name of the command which is used to get a list of revisions. |
static String |
NAME_REVISION_OPEN
The name of the command which is used to get a specific revision to open. |
static String |
NAME_SCHEDULE_ADD
The name of the command which will schedule a file for later add to the repository. |
static String |
NAME_SCHEDULE_REMOVE
The name of the command which will schedule a file for later remove from the repository. |
static String |
NAME_SUFFIX_OFFLINE
The suffix, that is used to distinguish offline commands. |
static String |
NAME_UNLOCK
The name of the command which will be called to unlock the file in VCS. |
static String |
PROP_NAME_FOR_INTERNAL_USE_ONLY
Properties wich contains this string in their names can be added to the command by the vcscore or any other module. |
static String |
PROPERTY_ADVANCED_NAME
Command may set this property which will be visible on the VariableInputDialog. |
static String |
PROPERTY_ASSOCIATED_COMMAND_INTERFACE_NAME
The String property, that contain the name of an interface, that represents this command. |
static String |
PROPERTY_CHANGED_REVISION_VAR_NAME
The name of the variable that specifies the changed revision. |
static String |
PROPERTY_CHANGING_NUM_REVISIONS
Whether the command changes the number of revisions. |
static String |
PROPERTY_CHANGING_REVISION
Whether the command changes one specific revision. |
static String |
PROPERTY_CHECK_FOR_MODIFICATIONS
When true, automatically check the file modification and reload the editor content if necessary without asking the user. |
static String |
PROPERTY_CLEAN_UNIMPORTANT_FILES_ON_SUCCESS
When this property is true, all unimportant files, that are associated with processed files are deleted after the command finish successfully. |
static String |
PROPERTY_COMMANDS_AFTER_FAIL
List of comma separated quoted commands, that will be executed after this command fails. |
static String |
PROPERTY_COMMANDS_AFTER_SUCCESS
List of comma separated quoted commands, that will be executed after this command succeeds. |
static String |
PROPERTY_CONCURRENT_EXECUTION
This Integer property can contain values of EXEC_* constants. |
static String |
PROPERTY_CONCURRENT_EXECUTION_WITH
This property has similar meaning as PROPERTY_CONCURRENT_EXECUTION , but
contains pairs of command name and integer property enclosed in quotes and delimited
by commas. |
static String |
PROPERTY_CONFIRMATION_MSG
If non empty, the user will be asked to confirm this message prior to command execution. |
static String |
PROPERTY_DISABLED_ON_STATUS
A string property, that can contain a list of file status attributes. |
static String |
PROPERTY_DISABLED_WHEN_NOT_LOCKED
A boolean property, that when true, the command menu item will be disabled on files that are not locked by the user defined in VcsFileSystem.VAR_LOCKER_USER_NAME
variable, or locked by the current user if the variable does not exist. |
static String |
PROPERTY_DISPLAY_INTERACTIVE_OUTPUT
A boolean property, if true a window which shows the output of the command with a possibility to enter an input will pop-up. |
static String |
PROPERTY_DISPLAY_PLAIN_OUTPUT
A boolean property, if true a window which shows the output of the command will pop-up. |
static String |
PROPERTY_DISPLAY_VISUALIZER
A String property that contains the name of the class which represents the GUI visualizer of this command. |
static String |
PROPERTY_DISTINGUISH_BINARY_FILES
This is a boolean property, which should be set to true on commands, that behaves differently on textual and binary files. |
static String |
PROPERTY_EXEC
This property denotes the executable string. |
static String |
PROPERTY_EXEC_PRIORITY
An Integer property, that defines the execution priority of this command. |
static String |
PROPERTY_EXEC_SCHEDULED_COMMAND
This property contains the name of command, that is executed on scheduled files. |
static String |
PROPERTY_EXEC_STRUCTURED
This property denotes the structured execution property. |
static String |
PROPERTY_GENERAL_COMMAND_ACTION_CLASS_NAME
This String property contains the name of class of an action, that will run this command. |
static String |
PROPERTY_GENERAL_COMMAND_ACTION_DISPLAY_NAME
This String property contains the display name of an action, that will run this command. |
static String |
PROPERTY_HIDDEN
Whether the command will appear on the actions popup menu. |
static String |
PROPERTY_HIDDEN_TEST_EXPRESSION
An expression, which if expands to an empty string, the command will appear on the actions popup menu. |
static String |
PROPERTY_IGNORE_FAIL
When true, the command is supposed to return fail status even when it finish normally. |
static String |
PROPERTY_INPUT_DESCRIPTOR
Describe the components, that will appear in the variable input dialog prior the command is executed. |
static String |
PROPERTY_LABEL_MNEMONIC
If the command label is not null, this property is used as a mnemonic for the command lanel. |
static String |
PROPERTY_LOAD_ATTRS_TO_VARS
This property can contain the array of attribute names and variable names. |
static String |
PROPERTY_MERGE_ERROR_TO_STANDARD_OUTPUT
A Boolean property indicating whether the error stream should be merged with the standard stream of the command. |
static String |
PROPERTY_NEEDS_HIERARCHICAL_ORDER
A boolean property, if true the files that are to be processed are sorted by the hierarchical order prior calling the command (the child file never goes before its parent). |
static String |
PROPERTY_NOTIFICATION_FAIL_MSG
If non empty, the user will be notified, that the command has failed. |
static String |
PROPERTY_NOTIFICATION_SUCCESS_MSG
If non empty, the user will be notified, that the command has finished successfully. |
static String |
PROPERTY_NUM_REVISIONS
An integer property that means the number of revisions the command can be applied. |
static String |
PROPERTY_ON_DIR
A boolean property, if true, the command can act on folders. |
static String |
PROPERTY_ON_FILE
A boolean property, if true, the command can act on files. |
static String |
PROPERTY_ON_NON_RECURSIVE_DIR
A boolean property, if true, the command can act on non recursive folders. |
static String |
PROPERTY_ON_ROOT
A boolean property, if true, the command can act on the root of the filesystem, if false, the command can act everywhere but on the root. |
static String |
PROPERTY_PRE_COMMANDS
List of comma separated quoted commands, that will be executed before this command is executed. |
static String |
PROPERTY_PROCESS_ALL_FILES
Whether to run this command on all files or ignore unimportant. |
static String |
PROPERTY_REFRESH_CURRENT_FOLDER
When this property is true, refresh of the current folder is performed after successfull execution of this command. |
static String |
PROPERTY_REFRESH_ON_FAIL
An integer property. |
static String |
PROPERTY_REFRESH_PARENT_FOLDER
When this property is true, refresh of the parent folder is performed after successfull execution of this command. |
static String |
PROPERTY_REFRESH_PARENT_OF_CURRENT_FOLDER
When this property is true, refresh of the parent folder of the current folder is performed after successfull execution of this command. |
static String |
PROPERTY_REFRESH_RECURSIVELY_PATTERN_MATCHED
Pattern that when matched from the exec string, the refresh is performed recursively. |
static String |
PROPERTY_REFRESH_RECURSIVELY_PATTERN_UNMATCHED
Pattern that when not matched from the exec string, the refresh is performed recursively. |
static String |
PROPERTY_RUN_ON_MULTIPLE_FILES
A boolean property, if true the command can run on multiple files. |
static String |
PROPERTY_RUN_ON_MULTIPLE_FILES_IN_FOLDER
A boolean property, if true the command can run on multiple files inside a single folder. |
static String |
PROPERTY_SUPPORTS_ADVANCED_MODE
A boolean property that describes if the command supports advanced mode in filesystem. |
static String |
PROPERTY_USER_PARAMS
Value of this property should be an array of Strings. |
static Integer |
REFRESH_ON_FAIL_FALSE
When this constant is the value of PROPERTY_REFRESH_ON_FAIL command property, the refresh command will be performed after the command fails. |
static Integer |
REFRESH_ON_FAIL_TRUE
When this constant is the value of PROPERTY_REFRESH_ON_FAIL command property, the refresh command will be always performed even when the command fails. |
static Integer |
REFRESH_ON_FAIL_TRUE_ON_FOLDERS
When this constant is the value of PROPERTY_REFRESH_ON_FAIL command property, the refresh command will be performed after the command fails only when the command acts on a folder. |
Method Summary | |
String |
getDisplayName()
Get the display name of the command. |
String |
getName()
Get the name of the command. |
Object |
getProperty(String propertyName)
Get the additional command property. |
String[] |
getPropertyNames()
Get the names of all supported properties. |
void |
setDisplayName(String displayName)
Set the display name of the command. |
void |
setName(String name)
Set the name of the command. |
void |
setProperty(String propertyName,
Object value)
Set the additional property to the command. |
Field Detail |
public static final String NAME_SUFFIX_OFFLINE
public static final String NAME_REFRESH
public static final String NAME_REFRESH_RECURSIVELY
public static final String NAME_LOCK
public static final String NAME_UNLOCK
public static final String NAME_EDIT
public static final String NAME_DELETE_FILE
public static final String NAME_DELETE_DIR
public static final String NAME_REVISION_OPEN
public static final String NAME_REVISION_LIST
public static final String NAME_SCHEDULE_ADD
public static final String NAME_SCHEDULE_REMOVE
public static final String PROPERTY_LABEL_MNEMONIC
public static final String PROPERTY_ADVANCED_NAME
public static final String PROPERTY_INPUT_DESCRIPTOR
public static final String PROPERTY_EXEC
public static final String PROPERTY_EXEC_STRUCTURED
StructuredExec
class.
The working directory, executable and arguments can contain variables
that are expanded prior to execution.
public static final String PROPERTY_EXEC_SCHEDULED_COMMAND
public static final String PROPERTY_CONCURRENT_EXECUTION
EXEC_SERIAL_ON_FILE, EXEC_SERIAL_ON_PACKAGE, EXEC_SERIAL_WITH_PARENT, EXEC_SERIAL_OF_COMMAND. The combination has a meaning of logical OR with the exception of EXEC_SERIAL_OF_COMMAND, which applies as a logical AND with the others.
E.g.: (EXEC_SERIAL_ON_FILE | EXEC_SERIAL_OF_COMMAND) will run only one command of this name on the supplied file at a time.
public static final String PROPERTY_CONCURRENT_EXECUTION_WITH
PROPERTY_CONCURRENT_EXECUTION
, but
contains pairs of command name and integer property enclosed in quotes and delimited
by commas. The integer concurrent execution property is valid only with respect
to the associated command name.
i.e.: "ADD 4", "STATUS 1"
public static final String PROPERTY_EXEC_PRIORITY
CommandTask.getPriority()
for details).
public static final String PROPERTY_ON_FILE
public static final String PROPERTY_ON_DIR
public static final String PROPERTY_ON_NON_RECURSIVE_DIR
NonRecursiveFolder
.
When the command is executed on a non-recursive folder, recursionBanned
variable will be set to "true".
public static final String PROPERTY_ON_ROOT
public static final String PROPERTY_PRE_COMMANDS
public static final String PROPERTY_REFRESH_CURRENT_FOLDER
public static final String PROPERTY_REFRESH_PARENT_FOLDER
public static final String PROPERTY_REFRESH_PARENT_OF_CURRENT_FOLDER
public static final String PROPERTY_REFRESH_RECURSIVELY_PATTERN_MATCHED
public static final String PROPERTY_REFRESH_RECURSIVELY_PATTERN_UNMATCHED
public static final String PROPERTY_REFRESH_ON_FAIL
public static final String PROPERTY_CLEAN_UNIMPORTANT_FILES_ON_SUCCESS
public static final String PROPERTY_CONFIRMATION_MSG
public static final String PROPERTY_NOTIFICATION_SUCCESS_MSG
public static final String PROPERTY_NOTIFICATION_FAIL_MSG
public static final String PROPERTY_COMMANDS_AFTER_SUCCESS
public static final String PROPERTY_COMMANDS_AFTER_FAIL
public static final String PROPERTY_USER_PARAMS
public static final String PROPERTY_DISPLAY_PLAIN_OUTPUT
public static final String PROPERTY_DISPLAY_INTERACTIVE_OUTPUT
public static final String PROPERTY_DISPLAY_VISUALIZER
public static final String PROPERTY_MERGE_ERROR_TO_STANDARD_OUTPUT
public static final String PROPERTY_PROCESS_ALL_FILES
public static final String PROPERTY_RUN_ON_MULTIPLE_FILES
public static final String PROPERTY_RUN_ON_MULTIPLE_FILES_IN_FOLDER
public static final String PROPERTY_NEEDS_HIERARCHICAL_ORDER
public static final String PROPERTY_IGNORE_FAIL
public static final String PROPERTY_CHECK_FOR_MODIFICATIONS
public static final String PROPERTY_NUM_REVISIONS
public static final String PROPERTY_CHANGING_NUM_REVISIONS
public static final String PROPERTY_CHANGING_REVISION
PROPERTY_CHANGED_REVISION_VAR_NAME
then should specify the number of revision
that has changed to speed up the revision update.
public static final String PROPERTY_CHANGED_REVISION_VAR_NAME
PROPERTY_CHANGING_REVISION
is true.
public static final String PROPERTY_HIDDEN
public static final String PROPERTY_HIDDEN_TEST_EXPRESSION
public static final String PROPERTY_DISABLED_ON_STATUS
public static final String PROPERTY_DISABLED_WHEN_NOT_LOCKED
VcsFileSystem.VAR_LOCKER_USER_NAME
variable, or locked by the current user if the variable does not exist.
public static final String PROPERTY_SUPPORTS_ADVANCED_MODE
public static final String PROPERTY_LOAD_ATTRS_TO_VARS
public static final String PROPERTY_DISTINGUISH_BINARY_FILES
public static final String PROPERTY_GENERAL_COMMAND_ACTION_CLASS_NAME
public static final String PROPERTY_GENERAL_COMMAND_ACTION_DISPLAY_NAME
public static final String PROPERTY_ASSOCIATED_COMMAND_INTERFACE_NAME
public static final String PROP_NAME_FOR_INTERNAL_USE_ONLY
public static final int EXEC_CONCURRENT_ALL
public static final int EXEC_SERIAL_ON_FILE
public static final int EXEC_SERIAL_ON_PACKAGE
public static final int EXEC_SERIAL_WITH_PARENT
public static final int EXEC_SERIAL_OF_COMMAND
EXEC_SERIAL_ON_FILE
or EXEC_SERIAL_ON_PACKAGE
properties.
public static final int EXEC_SERIAL_ALL
public static final int EXEC_SERIAL_WITH_PENDING
public static final int EXEC_SERIAL_INERT
public static final Integer REFRESH_ON_FAIL_FALSE
public static final Integer REFRESH_ON_FAIL_TRUE
public static final Integer REFRESH_ON_FAIL_TRUE_ON_FOLDERS
Method Detail |
public String getName()
public void setName(String name)
public String getDisplayName()
null
, the command will not be visible on the popup menu.
public void setDisplayName(String displayName)
null
, the command will not be visible on the popup menu.
public String[] getPropertyNames()
public Object getProperty(String propertyName)
propertyName
- the name of the property
public void setProperty(String propertyName, Object value)
propertyName
- the name of the propertyvalue
- the value of the property. The null
value should unset the property
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |