|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IWorkspaceCommandStack
A specialized transactional command stack that delegates the execution of
commands to an IOperationHistory. This command stack supports
execution
of Commands, but supports the following APIs only in terms of the
default undo context of the command stack:
CommandStack.execute(Command)CommandStack.undo()CommandStack.redo()CommandStack.flush()CommandStack.getMostRecentCommand()CommandStack.getUndoCommand()CommandStack.getRedoCommand()
getDefaultUndoContext()| Method Summary | |
|---|---|
IUndoContext |
getDefaultUndoContext()
Obtains the default undo context to add to the undoable operations that I execute on my operation history to wrap Commands. |
IOperationHistory |
getOperationHistory()
Obtains the operation history to which I delegate command execution. |
| Methods inherited from interface org.eclipse.emf.transaction.TransactionalCommandStack |
|---|
execute, getExceptionHandler, setExceptionHandler |
| Methods inherited from interface org.eclipse.emf.common.command.CommandStack |
|---|
addCommandStackListener, canRedo, canUndo, execute, flush, getMostRecentCommand, getRedoCommand, getUndoCommand, redo, removeCommandStackListener, undo |
| Method Detail |
|---|
IOperationHistory getOperationHistory()
IUndoContext getDefaultUndoContext()
Commands. Moreover,
undo, redo, and flush are context-specific operations
in the operation history, so my undo/redo/flush commands use this context
in delegating to the history. Likewise, the determination of the
most recent command and undo/redo commands depends on this context.
TransactionalCommandStack.execute(Command, java.util.Map),
CommandStack.undo(),
CommandStack.redo(),
CommandStack.flush(),
CommandStack.getMostRecentCommand(),
CommandStack.getUndoCommand(),
CommandStack.getRedoCommand()
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||