de.cau.cs.kieler.kiml.gmf
Class GmfLayoutCommand
java.lang.Object
org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.emf.workspace.AbstractEMFOperation
org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand
de.cau.cs.kieler.kiml.gmf.GmfLayoutCommand
- All Implemented Interfaces:
- IUndoableOperation, ICommand, org.eclipse.gmf.runtime.common.core.internal.command.ICommandWithSettableResult
public class GmfLayoutCommand
- extends AbstractTransactionalCommand
Command used to apply layout.
- See Also:
SetBoundsCommand
,
org.eclipse.gmf.runtime.diagram.ui.internal.commands.SetConnectionBendpointsCommand
,
SetConnectionAnchorsCommand
- Rating

- (2009-12-11) msp
Methods inherited from class org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand |
aggregateStatuses, cleanup, compose, didRedo, didUndo, doExecute, doRedo, doUndo, getCommandResult, getWorkspaceFiles, getWorkspaceFiles, internalSetResult, reduce, setResult |
Methods inherited from class org.eclipse.emf.workspace.AbstractEMFOperation |
canRedo, canSetOptions, canUndo, didCommit, dispose, execute, getChange, getEditingDomain, getOptions, isReuseParentTransaction, redo, setOptions, setReuseParentTransaction, undo |
Methods inherited from interface org.eclipse.gmf.runtime.common.core.command.ICommand |
setLabel |
Methods inherited from interface org.eclipse.core.commands.operations.IUndoableOperation |
addContext, canExecute, canRedo, canUndo, dispose, execute, getContexts, getLabel, hasContext, redo, removeContext, undo |
GmfLayoutCommand
public GmfLayoutCommand(TransactionalEditingDomain domain,
String label,
IAdaptable adapter)
- Creates a command to apply layout.
- Parameters:
domain
- the editing domain through which model changes are madelabel
- the command labeladapter
- an adapter to the View
of the base diagram
addShapeLayout
public void addShapeLayout(View view,
Point location,
Dimension size)
- Adds the given shape layout data to this command.
- Parameters:
view
- view from the GMF notation modellocation
- new location for the view, or null
if the location
shall not be changedsize
- new size for the view, or null
if the size shall not
be changed
addEdgeLayout
public void addEdgeLayout(Edge edge,
PointList bends,
String sourceTerminal,
String targetTerminal)
- Adds the given edge layout data to this command.
- Parameters:
edge
- edge from the GMF notation modelbends
- list of bend points for the edge, or null
if the bend
points shall not be changedsourceTerminal
- new source terminal, encoded as string, or null
if the
source terminal shall not be changedtargetTerminal
- new target terminal, encoded as string, or null
if the
target terminal shall not be changed
setObliqueRouting
public void setObliqueRouting(boolean theobliqueRouting)
- Enforces all edges to be drawn with oblique routing style.
- Parameters:
theobliqueRouting
- whether oblique routing stlye shall be used or not
doExecuteWithResult
protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
IAdaptable info)
throws ExecutionException
-
- Specified by:
doExecuteWithResult
in class AbstractTransactionalCommand
- Throws:
ExecutionException
getAffectedFiles
public List<?> getAffectedFiles()
-
- Specified by:
getAffectedFiles
in interface ICommand
- Overrides:
getAffectedFiles
in class AbstractTransactionalCommand