Package gov.nasa.jpl.command
Class UndoCommand
java.lang.Object
gov.nasa.jpl.command.UndoCommand
- All Implemented Interfaces:
Command
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UndoCommand
public UndoCommand()
-
-
Method Details
-
execute
Executes the most recent command stored in the undo stack. Adds the command to the redo stack.- Specified by:
execute
in interfaceCommand
- Throws:
CommandException
-
unExecute
Does not do anything. This is because undo will never be undone. This is done by using a redo command.- Specified by:
unExecute
in interfaceCommand
- Throws:
CommandException
-