|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A specialized transactional command stack that delegates the execution of
commands to an IOperationHistory
. This command stack supports
execution
of Command
s, 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()
IWorkspaceCommandStack.getDefaultUndoContext()
Method Summary | |
---|---|
org.eclipse.core.commands.operations.IUndoContext |
getDefaultUndoContext()
Obtains the default undo context to add to the undoable operations that I execute on my operation history to wrap Command s. |
org.eclipse.core.commands.operations.IOperationHistory |
getOperationHistory()
Obtains the operation history to which I delegate command execution. |
Method Detail |
public org.eclipse.core.commands.operations.IOperationHistory getOperationHistory()
public org.eclipse.core.commands.operations.IUndoContext getDefaultUndoContext()
Command
s. 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, 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |