public class RelationInstanceReorientCommand
extends org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand
Constructor and Description |
---|
RelationInstanceReorientCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest request) |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute() |
protected boolean |
canReorientSource() |
protected boolean |
canReorientTarget() |
protected org.eclipse.gmf.runtime.common.core.command.CommandResult |
doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
protected RelationInstance |
getLink() |
protected Instance |
getNewSource() |
protected Instance |
getNewTarget() |
protected Instance |
getOldSource() |
protected Instance |
getOldTarget() |
protected org.eclipse.gmf.runtime.common.core.command.CommandResult |
reorientSource() |
protected org.eclipse.gmf.runtime.common.core.command.CommandResult |
reorientTarget() |
getAffectedFiles, getEClass, getEClassToEdit, getElementToEdit, getRequest, isOK, setEClass, setElementToEdit
aggregateStatuses, cleanup, compose, didRedo, didUndo, doExecute, doRedo, doUndo, getAffectedFiles, getCommandResult, getWorkspaceFiles, getWorkspaceFiles, internalSetResult, reduce, setResult
canRedo, canSetOptions, canUndo, didCommit, dispose, execute, getChange, getEditingDomain, getOptions, isReuseParentTransaction, redo, setOptions, setReuseParentTransaction, undo
addContext, getContexts, getLabel, hasContext, removeContext, setLabel, toString
public RelationInstanceReorientCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest request)
public boolean canExecute()
canExecute
in interface org.eclipse.core.commands.operations.IUndoableOperation
canExecute
in class org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand
protected boolean canReorientSource()
protected boolean canReorientTarget()
protected org.eclipse.gmf.runtime.common.core.command.CommandResult doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
doExecuteWithResult
in class org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand
org.eclipse.core.commands.ExecutionException
protected org.eclipse.gmf.runtime.common.core.command.CommandResult reorientSource() throws org.eclipse.core.commands.ExecutionException
org.eclipse.core.commands.ExecutionException
protected org.eclipse.gmf.runtime.common.core.command.CommandResult reorientTarget() throws org.eclipse.core.commands.ExecutionException
org.eclipse.core.commands.ExecutionException
protected RelationInstance getLink()
protected Instance getOldSource()
protected Instance getNewSource()
protected Instance getOldTarget()
protected Instance getNewTarget()