org.eclipse.gmt.umlx.editor.command
Class ForwardUndoCompoundCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.eclipse.gmt.umlx.editor.command.AbstractCommand
          extended by org.eclipse.gmt.umlx.editor.command.CompoundCommand
              extended by org.eclipse.gmt.umlx.editor.command.ForwardUndoCompoundCommand
All Implemented Interfaces:
IAbstractCommand

public class ForwardUndoCompoundCommand
extends CompoundCommand

A CompoundCommand that performs undo on its contained Commands in the same order in which they were executed.


Constructor Summary
ForwardUndoCompoundCommand(java.lang.String label)
          Constructs a ForwardUndoCompoundCommand with the specified label
 
Method Summary
 void doUndo()
          Undo the command.
 
Methods inherited from class org.eclipse.gmt.umlx.editor.command.CompoundCommand
add, addSelectedObjects, canExecute, canUndo, compound, diagnoseCannotExecute, dispose, doPrepare, doRedo, getCommands, getLabel, toString
 
Methods inherited from class org.eclipse.gmt.umlx.editor.command.AbstractCommand
couldNotUnlock, execute, getCommand, prepare, prepare, redo, requestModification, undo
 
Methods inherited from class org.eclipse.gef.commands.Command
chain, getDebugLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardUndoCompoundCommand

public ForwardUndoCompoundCommand(java.lang.String label)
Constructs a ForwardUndoCompoundCommand with the specified label

Parameters:
label - the label
Method Detail

doUndo

public void doUndo()
Undo the command. For a Preorder compound command this means undoing all of the commands that it contains. Do it in the same order as applied.

Overrides:
doUndo in class CompoundCommand