|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.cmdline.UserCommand
Single user defined command.
Field Summary | |
static String |
NAME_REFRESH_FILE
The name of the command which refresh a file. |
static String |
PROPERTY_DATA_REGEX
|
static String |
PROPERTY_DATA_REGEX_GLOBAL
|
static String |
PROPERTY_ERROR_REGEX
|
static String |
PROPERTY_ERROR_REGEX_GLOBAL
|
static String |
PROPERTY_INPUT
A String property, that defines the input sequence that is sent to the command input. |
static String |
PROPERTY_INPUT_REPEAT
A Boolean property. |
static String |
PROPERTY_LIST_INDEX_ATTR
|
static String |
PROPERTY_LIST_INDEX_DATE
|
static String |
PROPERTY_LIST_INDEX_FILE_NAME
|
static String |
PROPERTY_LIST_INDEX_LOCKER
|
static String |
PROPERTY_LIST_INDEX_REMOVED_FILE_NAME
|
static String |
PROPERTY_LIST_INDEX_REVISION
|
static String |
PROPERTY_LIST_INDEX_SIZE
|
static String |
PROPERTY_LIST_INDEX_STATUS
|
static String |
PROPERTY_LIST_INDEX_STICKY
|
static String |
PROPERTY_LIST_INDEX_TIME
|
static String |
PROPERTY_REFRESH_FILE_RELATIVE_PATH
The relative path of files that are returned at index PROPERTY_LIST_INDEX_FILE_NAME. |
static String |
PROPERTY_REFRESH_FILE_STATUS_SUBSTITUTIONS
The list of pairs of quoted regular expressions and the status strings separated by commas. |
static String |
PROPERTY_REFRESH_INFO_FROM_BOTH_DATA_OUTS
The file refresh data information is normally read from the standard data output. |
static String |
PROPERTY_REFRESH_PROCESSED_FILES
When this property is true, refresh of the current folder is performed after successfull execution of this command. |
String[] |
userParams
Additional user parameters local to this command. |
Constructor Summary | |
UserCommand()
|
|
UserCommand(String name)
Deprecated. This constructor is necessary for backward compatibility to be able to read the command from properties file. |
Method Summary | |
Object |
clone()
|
int |
compareTo(Object o)
Compares this command with a specified command for order. |
void |
copyFrom(VcsCommand vc)
Fill all properties from the given user command. |
String |
getDisplayName()
Get the display name of the command. |
String |
getName()
Get the name of the command. |
int[] |
getOrder()
Deprecated. See setOrder for description. |
String |
getOrderString()
|
static String |
getOrderString(int[] orderArr)
|
Object |
getProperty(String propertyName)
Get the additional command property. |
String[] |
getPropertyNames()
Get the names of all supported properties. |
static void |
readFinished(List cmds)
This method is called after read of all commands from an external source. |
void |
setDisplayName(String displayName)
Set the display name of the command. |
void |
setName(String name)
Set the name of the command. |
void |
setOrder(int[] orderArr)
Deprecated. The order of individual commands should not be set. The position in the popup menu is given by the hierarchical structure of nodes. |
void |
setProperty(String propertyName,
Object value)
Set the additional property to the command. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String NAME_REFRESH_FILE
public static final String PROPERTY_REFRESH_PROCESSED_FILES
public static final String PROPERTY_INPUT
public static final String PROPERTY_INPUT_REPEAT
true
and when the PROPERTY_INPUT
is defined, the input sequence is repeated infinite times.
public static final String PROPERTY_DATA_REGEX
public static final String PROPERTY_ERROR_REGEX
public static final String PROPERTY_DATA_REGEX_GLOBAL
public static final String PROPERTY_ERROR_REGEX_GLOBAL
public static final String PROPERTY_LIST_INDEX_FILE_NAME
public static final String PROPERTY_LIST_INDEX_REMOVED_FILE_NAME
public static final String PROPERTY_LIST_INDEX_STATUS
public static final String PROPERTY_LIST_INDEX_LOCKER
public static final String PROPERTY_LIST_INDEX_REVISION
public static final String PROPERTY_LIST_INDEX_STICKY
public static final String PROPERTY_LIST_INDEX_ATTR
public static final String PROPERTY_LIST_INDEX_DATE
public static final String PROPERTY_LIST_INDEX_TIME
public static final String PROPERTY_LIST_INDEX_SIZE
public static final String PROPERTY_REFRESH_FILE_STATUS_SUBSTITUTIONS
public static final String PROPERTY_REFRESH_INFO_FROM_BOTH_DATA_OUTS
public static final String PROPERTY_REFRESH_FILE_RELATIVE_PATH
public volatile String[] userParams
Constructor Detail |
public UserCommand()
public UserCommand(String name)
Method Detail |
public Object clone()
public void copyFrom(VcsCommand vc)
public int compareTo(Object o)
compareTo
in interface Comparable
public void setName(String name)
VcsCommand
setName
in interface VcsCommand
public String getName()
VcsCommand
getName
in interface VcsCommand
public void setDisplayName(String displayName)
VcsCommand
null
, the command will not be visible on the popup menu.
setDisplayName
in interface VcsCommand
public String getDisplayName()
VcsCommand
null
, the command will not be visible on the popup menu.
getDisplayName
in interface VcsCommand
public void setOrder(int[] orderArr)
public int[] getOrder()
setOrder
for description.
public String toString()
public String getOrderString()
public static String getOrderString(int[] orderArr)
public String[] getPropertyNames()
getPropertyNames
in interface VcsCommand
public Object getProperty(String propertyName)
getProperty
in interface VcsCommand
propertyName
- the name of the property
public void setProperty(String propertyName, Object value)
setProperty
in interface VcsCommand
propertyName
- the name of the propertyvalue
- the value of the property. The null
value should unset the propertypublic static void readFinished(List cmds)
cmds
- the Vector
containing all read commands.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |