MetaDone
|
Classes | |
class | UndoRedoException |
Public Member Functions | |
Workspace | getWorkspace () |
Object | getContext () |
boolean | addContext (Object context) |
boolean | removeContext (Object context) |
void | undo () throws UndoRedoException |
void | redo () throws UndoRedoException |
boolean | canRedo () |
An undo/redo manager that supports different contexts.
boolean metadone.metabusiness.UndoRedoManager.addContext | ( | Object | context | ) |
Adds a context on the context stack.
context | The new context |
true
if the context was added Implemented in metadone.metabusiness.impl.UndoRedoManager_impl.
Referenced by metadone.client.MetadoneDesktopPane.updateForSelectedFrame().
boolean metadone.metabusiness.UndoRedoManager.canRedo | ( | ) |
Indicates whether redo can be called.
The result is false
if it makes no sense to redo, most of the time it means that undo() was not yet called.
true
if it is possible to redo Implemented in metadone.metabusiness.impl.UndoRedoManager_impl.
Object metadone.metabusiness.UndoRedoManager.getContext | ( | ) |
Gets the current context.
null
) Implemented in metadone.metabusiness.impl.UndoRedoManager_impl.
Workspace metadone.metabusiness.UndoRedoManager.getWorkspace | ( | ) |
Gets the workspace.
Implemented in metadone.metabusiness.impl.UndoRedoManager_impl.
void metadone.metabusiness.UndoRedoManager.redo | ( | ) | throws UndoRedoException |
Re-does the last undone operations.
UndoRedoException |
Implemented in metadone.metabusiness.impl.UndoRedoManager_impl.
Referenced by metadone.client.actions.UndoRedoAction.actionPerformed().
boolean metadone.metabusiness.UndoRedoManager.removeContext | ( | Object | context | ) |
Removes the context from the stack.
context | The context |
true
if the context was removed Implemented in metadone.metabusiness.impl.UndoRedoManager_impl.
Referenced by metadone.client.MetadoneDesktopPane.updateForSelectedFrame().
void metadone.metabusiness.UndoRedoManager.undo | ( | ) | throws UndoRedoException |
Undoes the last operations.
UndoRedoException |
Implemented in metadone.metabusiness.impl.UndoRedoManager_impl.
Referenced by metadone.client.actions.UndoRedoAction.actionPerformed().