de.cau.cs.kieler.kaom.diagram.edit.commands
Class LinkReorientCommand

java.lang.Object
  extended by org.eclipse.core.commands.operations.AbstractOperation
      extended by org.eclipse.emf.workspace.AbstractEMFOperation
          extended by org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand
              extended by org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand
                  extended by de.cau.cs.kieler.kaom.diagram.edit.commands.LinkReorientCommand
All Implemented Interfaces:
IUndoableOperation, ICommand, org.eclipse.gmf.runtime.common.core.internal.command.ICommandWithSettableResult

public class LinkReorientCommand
extends EditElementCommand

Rating red
Generated:
This code was automatically generated.

Constructor Summary
LinkReorientCommand(ReorientRelationshipRequest request)
           
 
Method Summary
 boolean canExecute()
           
protected  boolean canReorientSource()
           
protected  boolean canReorientTarget()
           
protected  CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info)
           
protected  Link getLink()
           
protected  Linkable getNewSource()
           
protected  Linkable getNewTarget()
           
protected  Linkable getOldSource()
           
protected  Linkable getOldTarget()
           
protected  CommandResult reorientSource()
           
protected  CommandResult reorientTarget()
           
 
Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand
getAffectedFiles, getEClass, getEClassToEdit, getElementToEdit, getRequest, isOK, setEClass, setElementToEdit
 
Methods inherited from class org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand
aggregateStatuses, cleanup, compose, didRedo, didUndo, doExecute, doRedo, doUndo, getAffectedFiles, 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 class org.eclipse.core.commands.operations.AbstractOperation
addContext, getContexts, getLabel, hasContext, removeContext, setLabel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmf.runtime.common.core.command.ICommand
setLabel
 
Methods inherited from interface org.eclipse.core.commands.operations.IUndoableOperation
addContext, canRedo, canUndo, dispose, execute, getContexts, getLabel, hasContext, redo, removeContext, undo
 

Constructor Detail

LinkReorientCommand

public LinkReorientCommand(ReorientRelationshipRequest request)
Generated:
This code was automatically generated.
Method Detail

canExecute

public boolean canExecute()
Specified by:
canExecute in interface IUndoableOperation
Overrides:
canExecute in class EditElementCommand
Generated:
This code was automatically generated.

canReorientSource

protected boolean canReorientSource()
Generated:
This code was automatically generated.

canReorientTarget

protected boolean canReorientTarget()
Generated:
This code was automatically generated.

doExecuteWithResult

protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
                                            IAdaptable info)
                                     throws ExecutionException
Specified by:
doExecuteWithResult in class AbstractTransactionalCommand
Throws:
ExecutionException
Generated:
This code was automatically generated.

reorientSource

protected CommandResult reorientSource()
                                throws ExecutionException
Throws:
ExecutionException
Generated:
This code was automatically generated.

reorientTarget

protected CommandResult reorientTarget()
                                throws ExecutionException
Throws:
ExecutionException
Generated:
This code was automatically generated.

getLink

protected Link getLink()
Generated:
This code was automatically generated.

getOldSource

protected Linkable getOldSource()
Generated:
This code was automatically generated.

getNewSource

protected Linkable getNewSource()
Generated:
This code was automatically generated.

getOldTarget

protected Linkable getOldTarget()
Generated:
This code was automatically generated.

getNewTarget

protected Linkable getNewTarget()
Generated:
This code was automatically generated.