public class SelectionCommandReverse extends AbstractCommand
DELETE, INSERT, UPDATE| Constructor and Description |
|---|
SelectionCommandReverse(DefaultFeatureReferenceSelection selection,
String description)
Creates a new SelectionCommandReverse over a selection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
int |
getType()
Returns the type of action related to data: insertion, deletion or
update.
|
void |
redo()
Re-does the following redoable command.
|
void |
undo()
Undoes the following undoable command.
|
getDate, getDescription, toString, updateDatepublic SelectionCommandReverse(DefaultFeatureReferenceSelection selection, String description)
selection - where the reverse has been performedpublic void execute()
public int getType()
UndoRedoInfopublic void undo()
throws UndoException
CommandUndoException - if there is an error performing de undo actionpublic void redo()
throws RedoException
CommandRedoException - if there is an error performing de redo action