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

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.eclipse.gmt.umlx.editor.command.DeferredCommand
          extended by org.eclipse.gmt.umlx.editor.command.DeferredReconnectCommand
All Implemented Interfaces:
ILinkRegimeEnums

public class DeferredReconnectCommand
extends DeferredCommand
implements ILinkRegimeEnums

A DeferredReconnectCommand delays the creation of a ReconnectCommand until it is ready to be executed, thereby avoiding the thrashing of commands to suit the prevailing cursor context.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.gmt.umlx.editor.regime.ILinkRegimeEnums
ILinkRegimeEnums.IsCreate, ILinkRegimeEnums.IsReconnect, ILinkRegimeEnums.IsReCreate
 
Constructor Summary
DeferredReconnectCommand()
           
 
Method Summary
<LM extends GLinkElement>
IErrorMessage
cannotSetContext(ILinkRegimeCo0<?,LM,?,?> regime, GNodeElement gSource, GLinkElement link, GNodeElement gTarget, org.eclipse.emf.ecore.EModelElement connection, boolean coShift)
           
 IAbstractCommand getDeferredCommand(ISheetEditor sheetEditor)
           
 
Methods inherited from class org.eclipse.gmt.umlx.editor.command.DeferredCommand
getDeferredCommandOrNull, redo, undo
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, execute, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeferredReconnectCommand

public DeferredReconnectCommand()
Method Detail

cannotSetContext

public <LM extends GLinkElement> IErrorMessage cannotSetContext(ILinkRegimeCo0<?,LM,?,?> regime,
                                                                GNodeElement gSource,
                                                                GLinkElement link,
                                                                GNodeElement gTarget,
                                                                org.eclipse.emf.ecore.EModelElement connection,
                                                                boolean coShift)

getDeferredCommand

public IAbstractCommand getDeferredCommand(ISheetEditor sheetEditor)
Specified by:
getDeferredCommand in class DeferredCommand