|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class represents a command whose behavior is described by VcsCommand.
Method Summary | |
Object |
clone()
|
Map |
getAdditionalVariables()
Get additional variables for the command execution. |
File[] |
getDiskFiles()
Sometimes the FileObject can not be found for a desired file. |
VcsCommandExecutor |
getExecutor()
Deprecated. This is needed only for the compatibility with the old "API". |
String |
getPreferredExec()
Get a preferred execution string, which might have some variables or patterns expanded. |
StructuredExec |
getPreferredStructuredExec()
Get a preferred structured execution property, which might have some variables or patterns expanded. |
VcsCommand |
getVcsCommand()
Get the VcsCommand instance associated with this command. |
VcsCommandVisualizer.Wrapper |
getVisualizerWrapper()
Get a wrapper for the visualizer. |
void |
setAdditionalVariables(Map vars)
Set additional variables for the command execution. |
void |
setDiskFiles(File[] files)
Sometimes the FileObject can not be found for a desired file. |
void |
setExecutor(VcsCommandExecutor executor)
Deprecated. This is needed only for the compatibility with the old "API". |
void |
setPreferredExec(String preferredExec)
Set a preferred execution string, which might have some variables or patterns expanded. |
void |
setPreferredStructuredExec(StructuredExec preferredSExec)
Set a preferred structured execution property, which might have some variables or patterns expanded. |
void |
setVcsCommand(VcsCommand cmd)
Set the VcsCommand instance associated with this command. |
void |
setVisualizerWrapper(VcsCommandVisualizer.Wrapper wrapper)
Set a wrapper for the visualizer. |
Methods inherited from interface org.netbeans.api.vcs.commands.Command |
execute, getApplicableFiles, getDisplayName, getFiles, getName, isExpertMode, isGUIMode, setExpertMode, setFiles, setGUIMode |
Methods inherited from interface org.netbeans.modules.vcscore.commands.TextOutputCommand |
addTextErrorListener, addTextOutputListener, removeTextErrorListener, removeTextOutputListener |
Methods inherited from interface org.netbeans.modules.vcscore.commands.RegexOutputCommand |
addRegexErrorListener, addRegexOutputListener, getErrorRegex, getStandardRegex, removeRegexErrorListener, removeRegexOutputListener, setErrorRegex, setStandardRegex |
Methods inherited from interface org.netbeans.modules.vcscore.commands.FileReaderCommand |
addDirReaderListener, addFileReaderListener, removeDirReaderListener, removeFileReaderListener |
Methods inherited from interface org.netbeans.modules.vcscore.commands.ChainingCommand |
getNextCommand, setNextCommand |
Method Detail |
public void setVcsCommand(VcsCommand cmd)
cmd
- the VcsCommand.public VcsCommand getVcsCommand()
public void setAdditionalVariables(Map vars)
vars
- The map of variable names and values.public Map getAdditionalVariables()
public void setPreferredExec(String preferredExec)
preferredExec
- the preferred execution stringpublic String getPreferredExec()
public void setPreferredStructuredExec(StructuredExec preferredSExec)
preferredSExec
- the preferred structured execution propertypublic StructuredExec getPreferredStructuredExec()
public void setExecutor(VcsCommandExecutor executor)
public VcsCommandExecutor getExecutor()
public void setDiskFiles(File[] files)
Some commands require here directories only! TODO assert it rather then leaving them fail for misterious reasons. Typicaly OS 'cd file.txt;' failure.
files
- The array of files to act on.public File[] getDiskFiles()
public void setVisualizerWrapper(VcsCommandVisualizer.Wrapper wrapper)
wrapper
- The wrapper for the command's GUI visualizerpublic VcsCommandVisualizer.Wrapper getVisualizerWrapper()
public Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |