|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICommand
This interface needs to be implemented by any command that needs to be executed in the context of a Gantt chart. Any command is free to specify whether it can be undone and/or redone. Note: it is important to mention that a command does not ensure transactional integrity. A command will not attempt a rollback or any other strategy in order to get back to the application's state before the command started its execution. This piece of functionality needs to be provided by the individual commands and the API used to retrieve data from the backend (SQL for example).
AbstractCommand
,
ICommandStack
,
DefaultCommandStack
Method Summary | |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
java.lang.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. |
Method Detail |
---|
void executeCommand(IProgressMonitor monitor)
monitor
- a progress monitorvoid undoCommand(IProgressMonitor monitor)
monitor
- a progress monitorvoid redoCommand(IProgressMonitor monitor)
monitor
- a progress monitorboolean isRelevant()
boolean isUndoable()
boolean isRedoable()
java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |