org.eclipse.gmt.umlx.editor.command
Class DeferredCreateLinkCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.eclipse.gmt.umlx.editor.command.DeferredCommand
org.eclipse.gmt.umlx.editor.command.DeferredCreateLinkCommand
- All Implemented Interfaces:
- ILinkRegimeEnums
public class DeferredCreateLinkCommand
- extends DeferredCommand
- implements ILinkRegimeEnums
A DeferredCreateLinkCommand delays the creation of a link CreateCommand until it is
ready to be executed, thereby avoiding the thrashing of commands to suit the
prevailing cursor context.
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 |
DeferredCreateLinkCommand
public DeferredCreateLinkCommand(ILinkRegimeCo0<?,?,?,?> paletteRegime)
cannotCompleteLinkCommand
public IErrorMessage cannotCompleteLinkCommand(ISheetEditor editor,
GModelElement gSource,
GModelElement gTarget,
boolean coShift,
org.eclipse.draw2d.geometry.Point location)
cannotCreateLinkCommand
public IErrorMessage cannotCreateLinkCommand(GModelElement gSource,
boolean coShift)
createCoTargetCommand
public <T,CS> ModelStateCommand createCoTargetCommand(ISheetEditor sheetEditor,
T target,
CS coSource)
createSetCoModelCommand
public <T,CT> ModelStateCommand createSetCoModelCommand(ISheetEditor sheetEditor,
T target,
java.lang.Object coTarget)
getDeferredCommand
public IAbstractCommand getDeferredCommand(ISheetEditor sheetEditor)
throws PreparationFailureException
- Specified by:
getDeferredCommand
in class DeferredCommand
- Throws:
PreparationFailureException