public class AdjustIdentityAnchorCommand
extends org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand
IdentityAnchors to recalculate connection anchors
when a node is resized
Parts are copied from Sirius ShiftEdgeIdentityAnchorOperation| Constructor and Description |
|---|
AdjustIdentityAnchorCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.gef.requests.ChangeBoundsRequest request) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustAnchors(org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart editPart) |
protected java.lang.String |
composeTerminalString(org.eclipse.draw2d.geometry.PrecisionPoint p) |
protected double |
computeNewYRelativeLocation(int direction,
org.eclipse.draw2d.geometry.Point currentRelativePoint,
double logicalHeightDelta) |
protected org.eclipse.gmf.runtime.common.core.command.CommandResult |
doExecuteWithResult(IProgressMonitor monitor,
IAdaptable info) |
protected org.eclipse.draw2d.geometry.Point |
getAnchorRelativePoint(org.eclipse.draw2d.geometry.PrecisionPoint currentAnchorPoint,
org.eclipse.draw2d.geometry.Rectangle bounds) |
protected double |
getScale(org.eclipse.gef.EditPart part) |
aggregateStatuses, cleanup, compose, didRedo, didUndo, doExecute, doRedo, doUndo, getAffectedFiles, getCommandResult, getWorkspaceFiles, getWorkspaceFiles, internalSetResult, reduce, setResultcanRedo, canSetOptions, canUndo, didCommit, dispose, execute, getChange, getEditingDomain, getOptions, isReuseParentTransaction, redo, setOptions, setReuseParentTransaction, undoaddContext, canExecute, getContexts, getLabel, hasContext, removeContext, setLabel, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddContext, canExecute, canRedo, canUndo, dispose, execute, getContexts, getLabel, hasContext, redo, removeContext, undopublic AdjustIdentityAnchorCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.gef.requests.ChangeBoundsRequest request)
protected org.eclipse.gmf.runtime.common.core.command.CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
doExecuteWithResult in class org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommandExecutionExceptionprotected void adjustAnchors(org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart editPart)
protected double getScale(org.eclipse.gef.EditPart part)
protected org.eclipse.draw2d.geometry.Point getAnchorRelativePoint(org.eclipse.draw2d.geometry.PrecisionPoint currentAnchorPoint,
org.eclipse.draw2d.geometry.Rectangle bounds)
protected double computeNewYRelativeLocation(int direction,
org.eclipse.draw2d.geometry.Point currentRelativePoint,
double logicalHeightDelta)
protected java.lang.String composeTerminalString(org.eclipse.draw2d.geometry.PrecisionPoint p)