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

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.DeferredCreateNodeCommand

public class DeferredCreateNodeCommand
extends DeferredCommand

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


Constructor Summary
DeferredCreateNodeCommand(IRegimeCo0<?,?> regime)
           
 
Method Summary
 IAbstractCommand getDeferredCommand(ISheetEditor sheetEditor)
           
 void setContext(GModelElement parent, org.eclipse.draw2d.geometry.Point location)
           
 
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

DeferredCreateNodeCommand

public DeferredCreateNodeCommand(IRegimeCo0<?,?> regime)
Method Detail

getDeferredCommand

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

setContext

public void setContext(GModelElement parent,
                       org.eclipse.draw2d.geometry.Point location)