站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

WrappingCommandTask (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.cmdline
Class WrappingCommandTask

java.lang.Object
  extended byorg.openide.util.Task
      extended byorg.netbeans.api.vcs.commands.CommandTask
          extended byorg.netbeans.spi.vcs.commands.CommandTaskSupport
              extended byorg.netbeans.modules.vcscore.cmdline.WrappingCommandTask
All Implemented Interfaces:
Runnable

public class WrappingCommandTask
extends CommandTaskSupport

This class ias a wrapper of several CommandTasks.


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
WrappingCommandTask(UserCommandSupport cmdSupport, VcsDescribedCommand cmd)
          Creates a new instance of WrappingCommandTask
 
Method Summary
 UserCommandTask[] getTasks()
          Get all wrapped tasks.
 void runTasks()
          Run all wrapped tasks.
 int waitForTasks()
          Wait for all wrapped tasks to finish.
 
Methods inherited from class org.netbeans.spi.vcs.commands.CommandTaskSupport
canExecute, execute, getCommand, getDisplayName, getFiles, getName, stop
 
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

WrappingCommandTask

public WrappingCommandTask(UserCommandSupport cmdSupport,
                           VcsDescribedCommand cmd)
Creates a new instance of WrappingCommandTask

Method Detail

runTasks

public void runTasks()
Run all wrapped tasks.


getTasks

public UserCommandTask[] getTasks()
Get all wrapped tasks.


waitForTasks

public int waitForTasks()
Wait for all wrapped tasks to finish.

Returns:
the status of wrapped tasks. If one fails, this also fail.

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.