de.cau.cs.kieler.synccharts.diagram.edit.policies
Class SyncchartsBaseItemSemanticEditPolicy

java.lang.Object
  extended by org.eclipse.gef.editpolicies.AbstractEditPolicy
      extended by org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
          extended by de.cau.cs.kieler.synccharts.diagram.edit.policies.SyncchartsBaseItemSemanticEditPolicy
All Implemented Interfaces:
EditPolicy, RequestConstants
Direct Known Subclasses:
RegionItemSemanticEditPolicy, RegionStateCompartmentItemSemanticEditPolicy, RegionStateItemSemanticEditPolicy, SignalItemSemanticEditPolicy, StateEntryActionCompartment2ItemSemanticEditPolicy, StateEntryActionCompartmentItemSemanticEditPolicy, StateEntryActionItemSemanticEditPolicy, StateExitActionCompartment2ItemSemanticEditPolicy, StateExitActionCompartmentItemSemanticEditPolicy, StateExitActionItemSemanticEditPolicy, StateInnerActionCompartment2ItemSemanticEditPolicy, StateInnerActionCompartmentItemSemanticEditPolicy, StateInnerActionItemSemanticEditPolicy, StateItemSemanticEditPolicy, StateRegionCompartment2ItemSemanticEditPolicy, StateRegionCompartmentItemSemanticEditPolicy, StateRegionItemSemanticEditPolicy, StateSignalCompartment2ItemSemanticEditPolicy, StateSignalCompartmentItemSemanticEditPolicy, StateSuspensionTriggerCompartment2ItemSemanticEditPolicy, StateSuspensionTriggerCompartmentItemSemanticEditPolicy, StateSuspensionTriggerItemSemanticEditPolicy, TextualCodeItemSemanticEditPolicy, TransitionItemSemanticEditPolicy, VariableItemSemanticEditPolicy

public class SyncchartsBaseItemSemanticEditPolicy
extends org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy

Rating red
Generated:
This code was automatically generated.

Nested Class Summary
static class SyncchartsBaseItemSemanticEditPolicy.LinkConstraints
           
 
Field Summary
static String VISUAL_ID_KEY
          Extended request data key to hold editpart visual id.
 
Fields inherited from interface org.eclipse.gef.EditPolicy
COMPONENT_ROLE, CONNECTION_BENDPOINTS_ROLE, CONNECTION_ENDPOINTS_ROLE, CONNECTION_ROLE, CONTAINER_ROLE, DIRECT_EDIT_ROLE, GRAPHICAL_NODE_ROLE, LAYOUT_ROLE, NODE_ROLE, PRIMARY_DRAG_ROLE, SELECTION_FEEDBACK_ROLE, TREE_CONTAINER_ROLE
 
Fields inherited from interface org.eclipse.gef.RequestConstants
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER
 
Constructor Summary
protected SyncchartsBaseItemSemanticEditPolicy(IElementType elementType)
           
 
Method Summary
protected  Command addDeleteViewCommand(Command mainCommand, DestroyRequest completedRequest)
           
protected  void addDestroyShortcutsCommand(ICompositeCommand cmd, View view)
          Clean all shortcuts to the host element from the same diagram
 Command getCommand(Request request)
          Extended request data key to hold editpart visual id.
protected  Command getConfigureCommand(ConfigureRequest req)
           
protected  Command getCreateCommand(CreateElementRequest req)
           
protected  Command getCreateRelationshipCommand(CreateRelationshipRequest req)
           
protected  Command getDestroyElementCommand(DestroyElementRequest req)
           
protected  Command getDestroyReferenceCommand(DestroyReferenceRequest req)
           
protected  Command getDuplicateCommand(DuplicateElementsRequest req)
           
protected  Command getEditContextCommand(GetEditContextRequest req)
           
protected  TransactionalEditingDomain getEditingDomain()
          Returns editing domain from the host edit part.
protected  Command getGEFWrapper(ICommand cmd)
           
static SyncchartsBaseItemSemanticEditPolicy.LinkConstraints getLinkConstraints()
           
protected  Command getMoveCommand(MoveRequest req)
           
protected  Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req)
           
protected  Command getReorientRelationshipCommand(ReorientRelationshipRequest req)
           
protected  Command getSemanticCommand(IEditCommandRequest request)
           
protected  Command getSemanticCommandSwitch(IEditCommandRequest req)
           
protected  Command getSetCommand(SetRequest req)
           
protected  int getVisualID(IEditCommandRequest request)
          Returns visual id from request parameters.
 
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
completeRequest, getReorientRefRelationshipSourceCommand, getReorientRefRelationshipTargetCommand, getReorientRelationshipSourceCommand, getReorientRelationshipTargetCommand, getTargetEditPart, shouldProceed, understandsRequest
 
Methods inherited from class org.eclipse.gef.editpolicies.AbstractEditPolicy
activate, deactivate, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, getHost, setHost, showSourceFeedback, showTargetFeedback, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VISUAL_ID_KEY

public static final String VISUAL_ID_KEY
Extended request data key to hold editpart visual id.

See Also:
Constant Field Values
Generated:
This code was automatically generated.
Constructor Detail

SyncchartsBaseItemSemanticEditPolicy

protected SyncchartsBaseItemSemanticEditPolicy(IElementType elementType)
Generated:
This code was automatically generated.
Method Detail

getCommand

public Command getCommand(Request request)
Extended request data key to hold editpart visual id. Add visual id of edited editpart to extended data of the request so command switch can decide what kind of diagram element is being edited. It is done in those cases when it's not possible to deduce diagram element kind from domain element.

Specified by:
getCommand in interface EditPolicy
Overrides:
getCommand in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
Generated:
This code was automatically generated.

getVisualID

protected int getVisualID(IEditCommandRequest request)
Returns visual id from request parameters.

Generated:
This code was automatically generated.

getSemanticCommand

protected Command getSemanticCommand(IEditCommandRequest request)
Overrides:
getSemanticCommand in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
Generated:
This code was automatically generated.

addDeleteViewCommand

protected Command addDeleteViewCommand(Command mainCommand,
                                       DestroyRequest completedRequest)
Generated:
This code was automatically generated.

getSemanticCommandSwitch

protected Command getSemanticCommandSwitch(IEditCommandRequest req)
Generated:
This code was automatically generated.

getConfigureCommand

protected Command getConfigureCommand(ConfigureRequest req)
Generated:
This code was automatically generated.

getCreateRelationshipCommand

protected Command getCreateRelationshipCommand(CreateRelationshipRequest req)
Generated:
This code was automatically generated.

getCreateCommand

protected Command getCreateCommand(CreateElementRequest req)
Generated:
This code was automatically generated.

getSetCommand

protected Command getSetCommand(SetRequest req)
Generated:
This code was automatically generated.

getEditContextCommand

protected Command getEditContextCommand(GetEditContextRequest req)
Generated:
This code was automatically generated.

getDestroyElementCommand

protected Command getDestroyElementCommand(DestroyElementRequest req)
Generated:
This code was automatically generated.

getDestroyReferenceCommand

protected Command getDestroyReferenceCommand(DestroyReferenceRequest req)
Generated:
This code was automatically generated.

getDuplicateCommand

protected Command getDuplicateCommand(DuplicateElementsRequest req)
Generated:
This code was automatically generated.

getMoveCommand

protected Command getMoveCommand(MoveRequest req)
Generated:
This code was automatically generated.

getReorientReferenceRelationshipCommand

protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req)
Generated:
This code was automatically generated.

getReorientRelationshipCommand

protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req)
Generated:
This code was automatically generated.

getGEFWrapper

protected final Command getGEFWrapper(ICommand cmd)
Generated:
This code was automatically generated.

getEditingDomain

protected TransactionalEditingDomain getEditingDomain()
Returns editing domain from the host edit part.

Generated:
This code was automatically generated.

addDestroyShortcutsCommand

protected void addDestroyShortcutsCommand(ICompositeCommand cmd,
                                          View view)
Clean all shortcuts to the host element from the same diagram

Generated:
This code was automatically generated.

getLinkConstraints

public static SyncchartsBaseItemSemanticEditPolicy.LinkConstraints getLinkConstraints()
Generated:
This code was automatically generated.