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.
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForwardUndoCompoundCommand
public ForwardUndoCompoundCommand()
ForwardUndoCompoundCommand
public ForwardUndoCompoundCommand(String label)
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