org.eclipse.gmt.umlx.editor.command
Class SharedCommandStack

java.lang.Object
  extended by org.eclipse.gef.commands.CommandStack
      extended by 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.


Field Summary
 
Fields inherited from class org.eclipse.gef.commands.CommandStack
POST_EXECUTE, POST_REDO, POST_UNDO, PRE_EXECUTE, PRE_REDO, PRE_UNDO
 
Constructor Summary
SharedCommandStack()
           
 
Method Summary
 void execute(org.eclipse.gef.commands.Command command)
          Deprecated. 
 void execute(java.lang.Runnable runnable)
           
 void executeOrOpen(IAbstractCommand command)
           
 void executeOrThrow(IAbstractCommand command)
           
 boolean isQueuing()
           
 void popBatching()
           
 void pushBatching()
           
 void queueRefresh(IRefreshEntry refreshEntry)
           
 void redo()
          Deprecated. 
 void redoOrOpen()
           
 void redoOrThrow()
           
 void undo()
          Deprecated. 
 void undoOrOpen()
           
 void undoOrThrow()
           
 
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
 

Constructor Detail

SharedCommandStack

public SharedCommandStack()
Method Detail

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