MetaDone
metadone.metabusiness.UndoRedoManager Interface Reference
Inheritance diagram for metadone.metabusiness.UndoRedoManager:

List of all members.

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 ()

Detailed Description

An undo/redo manager that supports different contexts.

Author:
kma TODO transactions should be implemented and the context should be a part of them

Member Function Documentation

boolean metadone.metabusiness.UndoRedoManager.addContext ( Object  context)

Adds a context on the context stack.

Parameters:
contextThe new context
Returns:
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.

Returns:
true if it is possible to redo

Implemented in metadone.metabusiness.impl.UndoRedoManager_impl.

Object metadone.metabusiness.UndoRedoManager.getContext ( )

Gets the current context.

Returns:
The context (may be null)

Implemented in metadone.metabusiness.impl.UndoRedoManager_impl.

Workspace metadone.metabusiness.UndoRedoManager.getWorkspace ( )

Gets the workspace.

Returns:
The workspace

Implemented in metadone.metabusiness.impl.UndoRedoManager_impl.

void metadone.metabusiness.UndoRedoManager.redo ( ) throws UndoRedoException

Re-does the last undone operations.

Exceptions:
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.

Parameters:
contextThe context
Returns:
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

The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations