net.refractions.udig.project.command
Class CommandManager.Executor

java.lang.Object
  extended by Job
      extended by net.refractions.udig.project.command.CommandManager.Executor
Enclosing class:
CommandManager

public class CommandManager.Executor
extends Job

Executes commands in a seperate thread from the requesting thread. JONES: Should support force kill of a command.

Since:
1.0.0
Author:
Jesse

Constructor Summary
CommandManager.Executor(java.lang.String name)
          Construct Executor.
 
Method Summary
 void addRequest(CommandManager.Request request)
          Adds a command to the stack of commands that needs to be executed.
 void rerunCommands(IProgressMonitor monitor)
          Executes all the commands in the history again.
protected  IStatus run(IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandManager.Executor

public CommandManager.Executor(java.lang.String name)
Construct Executor.

Parameters:
name - the name of the job
type - the type of the executor. (RUN, UNDO, REDO)
Method Detail

run

protected IStatus run(IProgressMonitor monitor)

addRequest

public void addRequest(CommandManager.Request request)
Adds a command to the stack of commands that needs to be executed.

Parameters:
request -

rerunCommands

public void rerunCommands(IProgressMonitor monitor)
Executes all the commands in the history again.