Package org.eclipse.gef.commands
Class ForwardUndoCompoundCommand
- java.lang.Object
-
- org.eclipse.gef.commands.Command
-
- org.eclipse.gef.commands.CompoundCommand
-
- org.eclipse.gef.commands.ForwardUndoCompoundCommand
-
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
Constructors Constructor Description ForwardUndoCompoundCommand()
Constructs a ForwardUndoCompoundCommand with no labelForwardUndoCompoundCommand(java.lang.String label)
Constructs a ForwardUndoCompoundCommand with the specified label
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDebugLabel()
void
undo()
Undo the command.-
Methods inherited from class org.eclipse.gef.commands.CompoundCommand
add, canExecute, canRedo, canUndo, dispose, execute, getChildren, getCommands, getLabel, isEmpty, redo, size, unwrap
-
Methods inherited from class org.eclipse.gef.commands.Command
chain, setDebugLabel, setLabel
-
-
-
-
Constructor Detail
-
ForwardUndoCompoundCommand
public ForwardUndoCompoundCommand()
Constructs a ForwardUndoCompoundCommand with no label
-
ForwardUndoCompoundCommand
public ForwardUndoCompoundCommand(java.lang.String label)
Constructs a ForwardUndoCompoundCommand with the specified label- Parameters:
label
- the label
-
-
Method Detail
-
getDebugLabel
public java.lang.String getDebugLabel()
- Overrides:
getDebugLabel
in classCommand
- Returns:
- an untranslated String used for debug purposes only
- See Also:
Command.getDebugLabel()
-
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 classCompoundCommand
- See Also:
Command.undo()
-
-