|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.commands.CommandCustomizationSupport
This class contains a support for VCS commands customization.
Field Summary | |
static String |
GLOBAL_INPUT_DESCRIPTOR
The name of the variable, where the global input descriptor is stored. |
static String |
GLOBAL_INPUT_EXPRESSION
The name of the variable, where the global input expression is stored. |
static String |
INPUT_DESCRIPTOR_PARSED
|
static String |
INPUT_DESCRIPTOR_RESOURCE_BUNDLES
|
Method Summary | |
static void |
addImportantFiles(Collection fos,
Table res,
boolean all,
VcsFileSystem fileSystem,
boolean doNotTestFS)
Add files. |
static void |
commandNotification(VcsCommandExecutor vce,
String notification,
CommandExecutionContext executionContext)
|
static VariableInputDialog |
createInputDialog(CommandExecutionContext executionContext,
String exec,
Hashtable vars,
VcsDescribedCommand dcmd,
boolean[] forEachFile,
StringBuffer retTitle)
|
static void |
defineGlobalOptions(Map vars,
CommandExecutionContext executionContext,
VcsCommand cmd)
Insert the global options into the map of variables. |
static FileObject[] |
getApplicableFiles(CommandExecutionContext executionContext,
VcsCommand cmd,
FileObject[] files)
|
static boolean |
preCustomize(CommandExecutionContext executionContext,
VcsCommand cmd,
Hashtable vars)
Perform the pre-customization of a command. |
static String |
preCustomizeExec(CommandExecutionContext executionContext,
VcsCommand cmd,
Hashtable vars)
Perform the pre-customization of a command's execution string. |
static StructuredExec |
preCustomizeStructuredExec(CommandExecutionContext executionContext,
VcsCommand cmd,
Hashtable vars)
Perform the pre-customization of a command's structured execution string. |
static void |
setupUncustomizedCommand(CommandExecutionContext executionContext,
String exec,
Hashtable vars,
VcsCommand cmd)
Setup some necessary variables, but do not present any GUI - the command does not wish to be customized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String GLOBAL_INPUT_DESCRIPTOR
public static final String GLOBAL_INPUT_EXPRESSION
public static final String INPUT_DESCRIPTOR_PARSED
public static final String INPUT_DESCRIPTOR_RESOURCE_BUNDLES
Method Detail |
public static void addImportantFiles(Collection fos, Table res, boolean all, VcsFileSystem fileSystem, boolean doNotTestFS)
res
- the Table
of path and FileObject pairs.all
- whether to add unimportant files as wellfileSystem
- the file systemdoNotTestFS
- if true, FileObjects will not be tested whether they belong to VcsFileSystempublic static FileObject[] getApplicableFiles(CommandExecutionContext executionContext, VcsCommand cmd, FileObject[] files)
public static boolean preCustomize(CommandExecutionContext executionContext, VcsCommand cmd, Hashtable vars)
preCustomizeExec(org.netbeans.modules.vcscore.commands.CommandExecutionContext, org.netbeans.modules.vcscore.commands.VcsCommand, java.util.Hashtable)
or preCustomizeStructuredExec(org.netbeans.modules.vcscore.commands.CommandExecutionContext, org.netbeans.modules.vcscore.commands.VcsCommand, java.util.Hashtable)
false
when the precustomization was cancelled,
true
otherwise.public static String preCustomizeExec(CommandExecutionContext executionContext, VcsCommand cmd, Hashtable vars)
preCustomize(org.netbeans.modules.vcscore.commands.CommandExecutionContext, org.netbeans.modules.vcscore.commands.VcsCommand, java.util.Hashtable)
.
null
when the precustomization was cancelled.public static StructuredExec preCustomizeStructuredExec(CommandExecutionContext executionContext, VcsCommand cmd, Hashtable vars)
preCustomize(org.netbeans.modules.vcscore.commands.CommandExecutionContext, org.netbeans.modules.vcscore.commands.VcsCommand, java.util.Hashtable)
.
null
when the precustomization was cancelled.public static void defineGlobalOptions(Map vars, CommandExecutionContext executionContext, VcsCommand cmd)
public static void commandNotification(VcsCommandExecutor vce, String notification, CommandExecutionContext executionContext)
public static void setupUncustomizedCommand(CommandExecutionContext executionContext, String exec, Hashtable vars, VcsCommand cmd) throws UserCancelException
UserCancelException
public static VariableInputDialog createInputDialog(CommandExecutionContext executionContext, String exec, Hashtable vars, VcsDescribedCommand dcmd, boolean[] forEachFile, StringBuffer retTitle) throws UserCancelException
UserCancelException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |