|
|||||||||||
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 as version control commands.
Each command is executed in a separate thread.
Field Summary | |
static int |
FAILED
The exit status when the command failed. |
static int |
INTERRUPTED
The exit status when the command was interrupted. |
static int |
SUCCEEDED
The exit status when the command terminated successfully. |
Method Summary | |
void |
addDataErrorOutputListener(CommandDataOutputListener l)
Deprecated. Kept for compatibility reasons only. Use addRegexErrorListener(org.netbeans.modules.vcscore.commands.RegexOutputListener) instead. |
void |
addDataOutputListener(CommandDataOutputListener l)
Deprecated. Kept for compatibility reasons only. Use addRegexOutputListener(org.netbeans.modules.vcscore.commands.RegexOutputListener) instead. |
void |
addErrorOutputListener(CommandOutputListener l)
Deprecated. Kept for compatibility reasons only. Use addTextErrorListener(org.netbeans.modules.vcscore.commands.TextOutputListener) instead. |
void |
addFileReaderListener(FileReaderListener l)
Add a file reader listener, that gets the updated attributes of the processed file(s). |
void |
addImmediateTextErrorListener(TextOutputListener l)
Add a listener to the standard error output, that will be noified immediately as soon as the output text is available. |
void |
addImmediateTextOutputListener(TextOutputListener l)
Add a listener to the standard output, that will be noified immediately as soon as the output text is available. |
void |
addOutputListener(CommandOutputListener l)
Deprecated. Kept for compatibility reasons only. Use addTextOutputListener(org.netbeans.modules.vcscore.commands.TextOutputListener) instead. |
void |
addRegexErrorListener(RegexOutputListener l)
Add the listener to the data error output of the command. |
void |
addRegexOutputListener(RegexOutputListener l)
Add the listener to the data output of the command. |
void |
addTextErrorListener(TextOutputListener l)
Add the listener to the error output of the command. |
void |
addTextOutputListener(TextOutputListener l)
Add the listener to the standard output of the command. |
VcsCommand |
getCommand()
The executed command. |
String |
getExec()
Get the updated execution string. |
int |
getExitStatus()
Get the exit status of the execution. |
Collection |
getFiles()
Get the set of files being processed by the command. |
Hashtable |
getVariables()
Get the variables used by this command execution. |
VcsCommandVisualizer |
getVisualizer()
Get the graphical visualization of the command. |
String |
preprocessCommand(VcsCommand vc,
Hashtable vars,
String exec,
StructuredExec sexec)
This method can be used to do some preprocessing of the command which is to be run. |
Methods inherited from interface java.lang.Runnable |
run |
Methods inherited from interface org.netbeans.modules.vcscore.commands.TextInput |
sendInput |
Field Detail |
public static final int SUCCEEDED
public static final int FAILED
public static final int INTERRUPTED
Method Detail |
public VcsCommand getCommand()
public String preprocessCommand(VcsCommand vc, Hashtable vars, String exec, StructuredExec sexec)
vc
- the command to be preprocessed.vars
- the variablesexec
- the updated execution string. It may contain user input from variable input dialog
public Hashtable getVariables()
public String getExec()
public Collection getFiles()
String
relative
to the file system root.public int getExitStatus()
SUCCEEDED
, FAILED
, INTERRUPTED
.public VcsCommandVisualizer getVisualizer()
public void addTextOutputListener(TextOutputListener l)
public void addTextErrorListener(TextOutputListener l)
public void addRegexOutputListener(RegexOutputListener l)
public void addRegexErrorListener(RegexOutputListener l)
public void addFileReaderListener(FileReaderListener l)
public void addOutputListener(CommandOutputListener l)
addTextOutputListener(org.netbeans.modules.vcscore.commands.TextOutputListener)
instead.
public void addErrorOutputListener(CommandOutputListener l)
addTextErrorListener(org.netbeans.modules.vcscore.commands.TextOutputListener)
instead.
public void addDataOutputListener(CommandDataOutputListener l)
addRegexOutputListener(org.netbeans.modules.vcscore.commands.RegexOutputListener)
instead.
public void addDataErrorOutputListener(CommandDataOutputListener l)
addRegexErrorListener(org.netbeans.modules.vcscore.commands.RegexOutputListener)
instead.
public void addImmediateTextOutputListener(TextOutputListener l)
public void addImmediateTextErrorListener(TextOutputListener l)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |