de.cau.cs.kieler.synccharts.diagram.edit.policies
Class SyncchartsBaseItemSemanticEditPolicy
java.lang.Object
org.eclipse.gef.editpolicies.AbstractEditPolicy
org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
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

- Generated:
- This code was automatically generated.
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 |
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy |
completeRequest, getReorientRefRelationshipSourceCommand, getReorientRefRelationshipTargetCommand, getReorientRelationshipSourceCommand, getReorientRelationshipTargetCommand, getTargetEditPart, shouldProceed, understandsRequest |
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.
SyncchartsBaseItemSemanticEditPolicy
protected SyncchartsBaseItemSemanticEditPolicy(IElementType elementType)
- Generated:
- This code was automatically generated.
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.