public class SetLabelsOffsetCommand
extends org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand
| Constructor and Description |
|---|
SetLabelsOffsetCommand(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.gmf.runtime.common.core.command.CommandResult |
doExecuteWithResult(IProgressMonitor monitor,
IAdaptable info) |
void |
setLabelsToUpdate(org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart connectionEditPart)
Set labels to update according to a connectionEditPart (all labels of this
connection will be update).
|
void |
setLabelsToUpdate(org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart connectionEditPart,
org.eclipse.draw2d.geometry.PointList originalPoints)
Set labels to update according to a connectionEditPart (all labels of this
connection will be update).
|
void |
setNewPointList(org.eclipse.draw2d.geometry.PointList newPointList)
Method to set the newPointList.
|
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 SetLabelsOffsetCommand(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
editingDomain - the editing domain through which model changes are madepublic void setNewPointList(org.eclipse.draw2d.geometry.PointList newPointList)
newPointList - The new points listprotected 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.AbstractTransactionalCommandExecutionExceptionpublic void setLabelsToUpdate(org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart connectionEditPart)
setNewPointList(PointList) method.connectionEditPart - The connection from which to get the potential three labels to
updatepublic void setLabelsToUpdate(org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart connectionEditPart,
org.eclipse.draw2d.geometry.PointList originalPoints)
setNewPointList(PointList) method.connectionEditPart - The connection from which to get the potential three labels to
updateoriginalPoints - The points of the edge before the move.