public class ConditionPreconditionOfActionsCreateCommand
extends org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand
Constructor and Description |
---|
ConditionPreconditionOfActionsCreateCommand(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 org.eclipse.gmf.runtime.common.core.command.CommandResult |
doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
protected Condition |
getSource() |
protected Action |
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 ConditionPreconditionOfActionsCreateCommand(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 setElementToEdit(org.eclipse.emf.ecore.EObject element)
setElementToEdit
in class org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand
protected Condition getSource()
protected Action getTarget()