|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openide.util.Task
org.netbeans.api.vcs.commands.CommandTask
org.netbeans.spi.vcs.commands.CommandTaskSupport
org.netbeans.modules.vcscore.cmdline.UserCommandTask
| Field Summary | |
static String |
VAR_USE_PARENT_VISUALIZER
If this variable is true, the visualizer of the parent task is used as a visualizer of this task as well. |
| Fields inherited from class org.netbeans.api.vcs.commands.CommandTask |
STATUS_FAILED, STATUS_INTERRUPTED, STATUS_NOT_STARTED, STATUS_RUNNING, STATUS_SUCCEEDED |
| Fields inherited from class org.openide.util.Task |
EMPTY |
| Constructor Summary | |
UserCommandTask(UserCommandSupport cmdSupport,
VcsDescribedCommand cmd)
Creates a new instance of UserCommandTask |
|
| Method Summary | |
protected boolean |
canExecute()
Tell, whether the task can be executed now. |
protected int |
execute()
Put the actual execution of this task here. |
String |
getDisplayName()
Get the display name of the command. |
VcsCommandExecutor |
getExecutor()
Get the executor of the command. |
FileObject[] |
getFiles()
Get files this task acts on. |
int |
getPriority()
Get the priority of this task. |
VcsCommandsProvider |
getProvider()
Get the VCS commands provider, that provided this Command or CommandTask. |
org.netbeans.modules.vcscore.runtime.RuntimeCommand |
getRuntimeCommand(CommandTaskInfo info)
|
Map |
getVariables()
Get variables that are used for the task execution. |
VcsCommand |
getVcsCommand()
Get the VcsCommand instance associated with this command. |
VcsCommandVisualizer |
getVisualizer(boolean gui)
Get the visualizer of the command. |
boolean |
hasGUIVisualizer()
Test whether this task has a GUI visualizer. |
void |
setProvider(VcsCommandsProvider provider)
Set the VCS commands provider, that provided this Command or CommandTask. |
| Methods inherited from class org.netbeans.spi.vcs.commands.CommandTaskSupport |
getCommand, getName, stop |
| Methods inherited from class org.netbeans.api.vcs.commands.CommandTask |
getExitStatus, isRunning, run, waitFinished |
| Methods inherited from class org.openide.util.Task |
addTaskListener, isFinished, notifyFinished, notifyRunning, removeTaskListener, toString, waitFinished, waitFinished |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String VAR_USE_PARENT_VISUALIZER
| Constructor Detail |
public UserCommandTask(UserCommandSupport cmdSupport, VcsDescribedCommand cmd)
| Method Detail |
public String getDisplayName()
CommandTaskSupportnull, the command will not be visible on the popup menu.
getDisplayName in class CommandTaskSupportpublic VcsCommandExecutor getExecutor()
VcsDescribedTask
getExecutor in interface VcsDescribedTaskpublic int getPriority()
CommandTask
Currently only binary priority is distinguished by the CommandProcessor:
priority == 0 and priority != 0. When
priority != 0, the task can be run sooner than other tasks
with priority == 0. After the task is running, it's performance
does not depend on the priority.
getPriority in class CommandTask0.public FileObject[] getFiles()
CommandTaskSupport
getFiles in class CommandTaskSupportpublic Map getVariables()
getVariables in interface VcsDescribedTaskpublic VcsCommand getVcsCommand()
getVcsCommand in interface VcsDescribedTaskpublic org.netbeans.modules.vcscore.runtime.RuntimeCommand getRuntimeCommand(CommandTaskInfo info)
getRuntimeCommand in interface org.netbeans.modules.vcscore.runtime.RuntimeCommandTaskpublic VcsCommandVisualizer getVisualizer(boolean gui)
VcsDescribedTask
getVisualizer in interface VcsDescribedTaskgui - Whether a GUI visualizer or plain text is requested.
VcsDescribedTask.hasGUIVisualizer().public boolean hasGUIVisualizer()
VcsDescribedTask
hasGUIVisualizer in interface VcsDescribedTaskprotected boolean canExecute()
canExecute in class CommandTaskSupporttrue if the task is to be executed immediately. This is the
default implementation.
false if the task should not be executed at this time.
In this case the method will be called later to check
whether the task can be executed already.protected int execute()
CommandTaskSupport
execute in class CommandTaskSupportpublic VcsCommandsProvider getProvider()
getProvider in interface ProvidedCommandpublic void setProvider(VcsCommandsProvider provider)
setProvider in interface ProvidedCommand
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||