public class RelationInstanceCreateCommand
extends org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand
Constructor and Description |
---|
RelationInstanceCreateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest request,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target) |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute() |
protected void |
doConfigure(RelationInstance newElement,
org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
protected org.eclipse.gmf.runtime.common.core.command.CommandResult |
doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
Instance |
getContainer() |
protected Instance |
getSource() |
protected Instance |
getTarget() |
protected void |
setElementToEdit(org.eclipse.emf.ecore.EObject element) |
getAffectedFiles, getEClass, getEClassToEdit, getElementToEdit, getRequest, isOK, setEClass
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 RelationInstanceCreateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest request, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target)
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 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 void doConfigure(RelationInstance newElement, org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
org.eclipse.core.commands.ExecutionException
protected void setElementToEdit(org.eclipse.emf.ecore.EObject element)
setElementToEdit
in class org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand
protected Instance getSource()
protected Instance getTarget()
public Instance getContainer()