Class EMFProfileBaseItemSemanticEditPolicy
- java.lang.Object
-
- org.eclipse.gef.editpolicies.AbstractEditPolicy
-
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
-
- org.modelversioning.emfprofile.diagram.edit.policies.EMFProfileBaseItemSemanticEditPolicy
-
- All Implemented Interfaces:
org.eclipse.gef.EditPolicy,org.eclipse.gef.RequestConstants
- Direct Known Subclasses:
EAttribute2ItemSemanticEditPolicy,EAttributeItemSemanticEditPolicy,EClass2ItemSemanticEditPolicy,EClassAttributes2ItemSemanticEditPolicy,EClassAttributesItemSemanticEditPolicy,EClassESuperTypesItemSemanticEditPolicy,EClassItemSemanticEditPolicy,EClassOperations2ItemSemanticEditPolicy,EClassOperationsItemSemanticEditPolicy,EDataTypeItemSemanticEditPolicy,EEnumItemSemanticEditPolicy,EEnumLiteralItemSemanticEditPolicy,EEnumLiteralsItemSemanticEditPolicy,EOperationItemSemanticEditPolicy,EPackageContentsItemSemanticEditPolicy,EPackageItemSemanticEditPolicy,EReferenceItemSemanticEditPolicy,ExtensionItemSemanticEditPolicy,ProfileItemSemanticEditPolicy,StereotypeItemSemanticEditPolicy,StereotypeTaggedValueCompItemSemanticEditPolicy
public class EMFProfileBaseItemSemanticEditPolicy extends org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy- Generated class or method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEMFProfileBaseItemSemanticEditPolicy.LinkConstraints
-
Field Summary
Fields Modifier and Type Field Description static StringVISUAL_ID_KEYExtended 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
Constructors Modifier Constructor Description protectedEMFProfileBaseItemSemanticEditPolicy(org.eclipse.gmf.runtime.emf.type.core.IElementType elementType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.gef.commands.CommandaddDeleteViewCommand(org.eclipse.gef.commands.Command mainCommand, org.eclipse.gmf.runtime.emf.type.core.requests.DestroyRequest completedRequest)protected voidaddDestroyShortcutsCommand(org.eclipse.gmf.runtime.common.core.command.ICompositeCommand cmd, org.eclipse.gmf.runtime.notation.View view)Clean all shortcuts to the host element from the same diagramorg.eclipse.gef.commands.CommandgetCommand(org.eclipse.gef.Request request)Extended request data key to hold editpart visual id.protected org.eclipse.gef.commands.CommandgetConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest req)protected org.eclipse.gef.commands.CommandgetCreateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest req)protected org.eclipse.gef.commands.CommandgetCreateRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest req)protected org.eclipse.gef.commands.CommandgetDestroyElementCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest req)protected org.eclipse.gef.commands.CommandgetDestroyReferenceCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest req)protected org.eclipse.gef.commands.CommandgetDuplicateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DuplicateElementsRequest req)protected org.eclipse.gef.commands.CommandgetEditContextCommand(org.eclipse.gmf.runtime.emf.type.core.requests.GetEditContextRequest req)protected org.eclipse.emf.transaction.TransactionalEditingDomaingetEditingDomain()Returns editing domain from the host edit part.protected org.eclipse.gef.commands.CommandgetGEFWrapper(org.eclipse.gmf.runtime.common.core.command.ICommand cmd)static EMFProfileBaseItemSemanticEditPolicy.LinkConstraintsgetLinkConstraints()protected org.eclipse.gef.commands.CommandgetMoveCommand(org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest req)protected org.eclipse.gef.commands.CommandgetReorientReferenceRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest req)protected org.eclipse.gef.commands.CommandgetReorientRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest req)protected org.eclipse.gef.commands.CommandgetSemanticCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest request)protected org.eclipse.gef.commands.CommandgetSemanticCommandSwitch(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest req)protected org.eclipse.gef.commands.CommandgetSetCommand(org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest req)protected intgetVisualID(org.eclipse.gmf.runtime.emf.type.core.requests.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
-
-
-
-
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 class or method.
-
-
Method Detail
-
getCommand
public org.eclipse.gef.commands.Command getCommand(org.eclipse.gef.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:
getCommandin interfaceorg.eclipse.gef.EditPolicy- Overrides:
getCommandin classorg.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy- Generated class or method.
-
getVisualID
protected int getVisualID(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest request)
Returns visual id from request parameters.- Generated class or method.
-
getSemanticCommand
protected org.eclipse.gef.commands.Command getSemanticCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest request)
- Overrides:
getSemanticCommandin classorg.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy- Generated class or method.
-
addDeleteViewCommand
protected org.eclipse.gef.commands.Command addDeleteViewCommand(org.eclipse.gef.commands.Command mainCommand, org.eclipse.gmf.runtime.emf.type.core.requests.DestroyRequest completedRequest)- Generated class or method.
-
getSemanticCommandSwitch
protected org.eclipse.gef.commands.Command getSemanticCommandSwitch(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest req)
- Generated class or method.
-
getConfigureCommand
protected org.eclipse.gef.commands.Command getConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest req)
- Generated class or method.
-
getCreateRelationshipCommand
protected org.eclipse.gef.commands.Command getCreateRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest req)
- Generated class or method.
-
getCreateCommand
protected org.eclipse.gef.commands.Command getCreateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest req)
- Generated class or method.
-
getSetCommand
protected org.eclipse.gef.commands.Command getSetCommand(org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest req)
- Generated class or method.
-
getEditContextCommand
protected org.eclipse.gef.commands.Command getEditContextCommand(org.eclipse.gmf.runtime.emf.type.core.requests.GetEditContextRequest req)
- Generated class or method.
-
getDestroyElementCommand
protected org.eclipse.gef.commands.Command getDestroyElementCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest req)
- Generated class or method.
-
getDestroyReferenceCommand
protected org.eclipse.gef.commands.Command getDestroyReferenceCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest req)
- Generated class or method.
-
getDuplicateCommand
protected org.eclipse.gef.commands.Command getDuplicateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DuplicateElementsRequest req)
- Generated class or method.
-
getMoveCommand
protected org.eclipse.gef.commands.Command getMoveCommand(org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest req)
- Generated class or method.
-
getReorientReferenceRelationshipCommand
protected org.eclipse.gef.commands.Command getReorientReferenceRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest req)
- Generated class or method.
-
getReorientRelationshipCommand
protected org.eclipse.gef.commands.Command getReorientRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest req)
- Generated class or method.
-
getGEFWrapper
protected final org.eclipse.gef.commands.Command getGEFWrapper(org.eclipse.gmf.runtime.common.core.command.ICommand cmd)
- Generated class or method.
-
getEditingDomain
protected org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
Returns editing domain from the host edit part.- Generated class or method.
-
addDestroyShortcutsCommand
protected void addDestroyShortcutsCommand(org.eclipse.gmf.runtime.common.core.command.ICompositeCommand cmd, org.eclipse.gmf.runtime.notation.View view)Clean all shortcuts to the host element from the same diagram- Generated class or method.
-
getLinkConstraints
public static EMFProfileBaseItemSemanticEditPolicy.LinkConstraints getLinkConstraints()
- Generated class or method.
-
-