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

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

public class DeferredReparentCommand
extends DeferredCommand

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


Constructor Summary
DeferredReparentCommand()
           
 
Method Summary
 IErrorMessage couldNotSetContext(ISheetEditor sheetEditor, java.lang.Object target, java.util.List<java.lang.Object> sources, org.eclipse.draw2d.geometry.Point location)
           
 IErrorMessage couldNotSetRequestContext(org.eclipse.gef.GraphicalEditPart targetEditPart, org.eclipse.gef.requests.ChangeBoundsRequest changeRequest)
           
 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

DeferredReparentCommand

public DeferredReparentCommand()
Method Detail

getDeferredCommand

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

couldNotSetContext

public IErrorMessage couldNotSetContext(ISheetEditor sheetEditor,
                                        java.lang.Object target,
                                        java.util.List<java.lang.Object> sources,
                                        org.eclipse.draw2d.geometry.Point location)

couldNotSetRequestContext

public IErrorMessage couldNotSetRequestContext(org.eclipse.gef.GraphicalEditPart targetEditPart,
                                               org.eclipse.gef.requests.ChangeBoundsRequest changeRequest)