|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.util.Task org.netbeans.api.vcs.commands.CommandTask org.netbeans.spi.vcs.commands.CommandTaskSupport
The supported command task. This task delegates all methods to it's command support.
Field Summary |
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 | |
CommandTaskSupport(CommandSupport cmdSupport,
Command cmd)
Creates a new instance of CommandTaskSupport. |
Method Summary | |
protected boolean |
canExecute()
Tell, whether the task can be executed now. |
protected int |
execute()
Put the actual execution of this task here. |
Command |
getCommand()
|
String |
getDisplayName()
Get the display name of the command. |
FileObject[] |
getFiles()
Get files this task acts on. |
String |
getName()
Get the name of the command. |
void |
stop()
Stop the command's execution. |
Methods inherited from class org.netbeans.api.vcs.commands.CommandTask |
getExitStatus, getPriority, 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 |
Constructor Detail |
public CommandTaskSupport(CommandSupport cmdSupport, Command cmd)
cmdSupport
- the CommandSupport instance, that created this task.cmd
- The copy of customized command, that will not change any more.Method Detail |
public final Command getCommand()
public String getName()
getName
in class CommandTask
public String getDisplayName()
null
, the command will not be visible on the popup menu.
getDisplayName
in class CommandTask
public FileObject[] getFiles()
getFiles
in class CommandTask
protected int execute()
execute
in class CommandTask
protected boolean canExecute()
canExecute
in class CommandTask
true
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.public void stop()
stop
in class CommandTask
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |