net.refractions.udig.tools.edit
Class BehaviourCommand

java.lang.Object
  extended by AbstractCommand
      extended by net.refractions.udig.tools.edit.BehaviourCommand

public class BehaviourCommand
extends AbstractCommand

Command used by (@link net.refractions.udig.tools.edit.EditToolHandler} and OrderedCompositeEventBehavior for executing the behaviours in a tool.

Since:
1.1.0
Author:
jones

Constructor Summary
BehaviourCommand(java.util.List<Behaviour> behaviours, EditToolHandler handler)
           
 
Method Summary
 boolean execute(IProgressMonitor monitor)
           
 java.lang.String getName()
           
 void rollback(IProgressMonitor monitor)
           
 void run(IProgressMonitor monitor)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BehaviourCommand

public BehaviourCommand(java.util.List<Behaviour> behaviours,
                        EditToolHandler handler)
Method Detail

execute

public boolean execute(IProgressMonitor monitor)
                throws java.lang.Exception
Throws:
java.lang.Exception

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

rollback

public void rollback(IProgressMonitor monitor)
              throws java.lang.Exception
Throws:
java.lang.Exception

run

public void run(IProgressMonitor monitor)
         throws java.lang.Exception
Throws:
java.lang.Exception