public interface ICommand extends Serializable
AbstractCommand
,
ICommandStack
,
DefaultCommandStack
Modifier and Type | Method and Description |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command.
|
String |
getName()
The name of the command.
|
boolean |
isRedoable()
Returns true if the command can be redone.
|
boolean |
isRelevant()
Determines whether the command is relevant for undo / redo operations.
|
boolean |
isUndoable()
Returns true if the command can be undone.
|
void |
redoCommand(IProgressMonitor monitor)
Redos the command.
|
void |
undoCommand(IProgressMonitor monitor)
Undos the command.
|
void executeCommand(IProgressMonitor monitor) throws CommandException
monitor
- a progress monitorCommandException
- if anything during the execution of the command has gone
wrongvoid undoCommand(IProgressMonitor monitor) throws CommandException
monitor
- a progress monitorCommandException
- if anything during the execution of the command has gone
wrongvoid redoCommand(IProgressMonitor monitor) throws CommandException
monitor
- a progress monitorCommandException
- if anything during the execution of the command has gone
wrongboolean isRelevant()
boolean isUndoable()
boolean isRedoable()
String getName()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.