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

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

public class DeferredCreateFromOutlineCommand
extends DeferredCommand

A DeferredCreateFromOutlineCommand delays the creation of a CreateCommand per required element until the command is ready to be executed. This avoids thrashing to suit the prevailing cursor context.


Constructor Summary
DeferredCreateFromOutlineCommand(java.util.List<java.lang.Object> coModels)
           
 
Method Summary
 IErrorMessage couldNotSetContext(ISheetEditor sheetEditor, java.lang.Object model, org.eclipse.draw2d.geometry.Point location)
           
 IAbstractCommand getDeferredCommand(ISheetEditor sheetEditor)
           
 java.util.List<java.lang.Object> getModels()
           
 
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

DeferredCreateFromOutlineCommand

public DeferredCreateFromOutlineCommand(java.util.List<java.lang.Object> coModels)
Method Detail

couldNotSetContext

public IErrorMessage couldNotSetContext(ISheetEditor sheetEditor,
                                        java.lang.Object model,
                                        org.eclipse.draw2d.geometry.Point location)

getDeferredCommand

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

getModels

public java.util.List<java.lang.Object> getModels()