GEF v2.0

org.eclipse.gef.commands
Class ForwardUndoCompoundCommand

java.lang.Object
  |
  +--org.eclipse.gef.commands.AbstractCommand
        |
        +--org.eclipse.gef.commands.CompoundCommand
              |
              +--org.eclipse.gef.commands.ForwardUndoCompoundCommand
All Implemented Interfaces:
Command

public class ForwardUndoCompoundCommand
extends CompoundCommand

This command will undo its commands in the same order applied. However any Chained commands will undo in reverse order since that can't be controlled.


Fields inherited from class org.eclipse.gef.commands.CompoundCommand
commandList
 
Fields inherited from interface org.eclipse.gef.commands.Command
copyright
 
Constructor Summary
ForwardUndoCompoundCommand()
           
ForwardUndoCompoundCommand(String label)
           
 
Method Summary
 String getDebugLabel()
           
 void undo()
          Undo the command.
 
Methods inherited from class org.eclipse.gef.commands.CompoundCommand
add, canExecute, canUndo, dispose, execute, getAffectedObjects, getChildren, getCommands, getLabel, isEmpty, redo, size, unwrap
 
Methods inherited from class org.eclipse.gef.commands.AbstractCommand
chain, getDescription, getResult, setDebugLabel, setDescription, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardUndoCompoundCommand

public ForwardUndoCompoundCommand()

ForwardUndoCompoundCommand

public ForwardUndoCompoundCommand(String label)
Method Detail

getDebugLabel

public String getDebugLabel()
Overrides:
getDebugLabel in class AbstractCommand

undo

public void undo()
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:
undo in class CompoundCommand

GEF v2.0