org.eclipse.gmt.umlx.editor.command
Class SharedCommandStack
java.lang.Object
org.eclipse.gef.commands.CommandStack
org.eclipse.gmt.umlx.editor.command.SharedCommandStack
public class SharedCommandStack
- extends org.eclipse.gef.commands.CommandStack
SharedCommandStack provides an ability for executed commands to queue IRefreshEntry
call-backs for execution after an execute/redo/undo. This avoids attempts to refresh
graphical artefacts before their underlying models are stable and aggregates multiple
refreshes of the same context.
Fields inherited from class org.eclipse.gef.commands.CommandStack |
POST_EXECUTE, POST_REDO, POST_UNDO, PRE_EXECUTE, PRE_REDO, PRE_UNDO |
Methods inherited from class org.eclipse.gef.commands.CommandStack |
addCommandStackEventListener, addCommandStackListener, canRedo, canUndo, dispose, flush, getCommands, getRedoCommand, getUndoCommand, getUndoLimit, isDirty, markSaveLocation, removeCommandStackEventListener, removeCommandStackListener, setUndoLimit |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedCommandStack
public SharedCommandStack()
execute
@Deprecated
public void execute(org.eclipse.gef.commands.Command command)
- Deprecated.
- Overrides:
execute
in class org.eclipse.gef.commands.CommandStack
executeOrOpen
public void executeOrOpen(IAbstractCommand command)
executeOrThrow
public void executeOrThrow(IAbstractCommand command)
throws AbstractFailureException
- Throws:
AbstractFailureException
execute
public void execute(java.lang.Runnable runnable)
isQueuing
public boolean isQueuing()
popBatching
public void popBatching()
pushBatching
public void pushBatching()
queueRefresh
public void queueRefresh(IRefreshEntry refreshEntry)
redo
@Deprecated
public void redo()
- Deprecated.
- Overrides:
redo
in class org.eclipse.gef.commands.CommandStack
redoOrOpen
public void redoOrOpen()
redoOrThrow
public void redoOrThrow()
throws AbstractFailureException
- Throws:
AbstractFailureException
undo
@Deprecated
public void undo()
- Deprecated.
- Overrides:
undo
in class org.eclipse.gef.commands.CommandStack
undoOrOpen
public void undoOrOpen()
undoOrThrow
public void undoOrThrow()
throws AbstractFailureException
- Throws:
AbstractFailureException