net.refractions.udig.tools.edit
Class EventBehaviourCommand

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

public class EventBehaviourCommand
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
EventBehaviourCommand(java.util.List<EventBehaviour> behaviours, EditToolHandler handler, MapMouseEvent event, EventType eventType)
           
 
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

EventBehaviourCommand

public EventBehaviourCommand(java.util.List<EventBehaviour> behaviours,
                             EditToolHandler handler,
                             MapMouseEvent event,
                             EventType eventType)
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