public class FTypeUpdateCommand extends AbstractFTypeCommand
expansionManager, type
DELETE, INSERT, UPDATE
Constructor and Description |
---|
FTypeUpdateCommand(FeatureTypeManager expansionManager,
FeatureType type,
FeatureType oldType,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
FeatureType |
getOldFeatureType() |
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.
|
getFeatureType
getDate, getDescription, toString, updateDate
public FTypeUpdateCommand(FeatureTypeManager expansionManager, FeatureType type, FeatureType oldType, String description)
public void undo() throws UndoException
Command
UndoException
- if there is an error performing de undo actionpublic void redo() throws RedoException
Command
RedoException
- if there is an error performing de redo actionpublic int getType()
UndoRedoInfo
public void execute()
public FeatureType getOldFeatureType()