public class CCDModelBaseItemSemanticEditPolicy
extends org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
Modifier and Type | Class and Description |
---|---|
static class |
CCDModelBaseItemSemanticEditPolicy.LinkConstraints |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VISUAL_ID_KEY
Extended request data key to hold editpart visual id.
|
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
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
Modifier | Constructor and Description |
---|---|
protected |
CCDModelBaseItemSemanticEditPolicy(org.eclipse.gmf.runtime.emf.type.core.IElementType elementType) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.gef.commands.Command |
addDeleteViewCommand(org.eclipse.gef.commands.Command mainCommand,
org.eclipse.gmf.runtime.emf.type.core.requests.DestroyRequest completedRequest) |
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
|
org.eclipse.gef.commands.Command |
getCommand(org.eclipse.gef.Request request)
Extended request data key to hold editpart visual id.
|
protected org.eclipse.gef.commands.Command |
getConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest req) |
protected org.eclipse.gef.commands.Command |
getCreateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest req) |
protected org.eclipse.gef.commands.Command |
getCreateRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest req) |
protected org.eclipse.gef.commands.Command |
getDestroyElementCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest req) |
protected org.eclipse.gef.commands.Command |
getDestroyReferenceCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest req) |
protected org.eclipse.gef.commands.Command |
getDuplicateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DuplicateElementsRequest req) |
protected org.eclipse.gef.commands.Command |
getEditContextCommand(org.eclipse.gmf.runtime.emf.type.core.requests.GetEditContextRequest req) |
protected org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain()
Returns editing domain from the host edit part.
|
protected org.eclipse.gef.commands.Command |
getGEFWrapper(org.eclipse.gmf.runtime.common.core.command.ICommand cmd) |
static CCDModelBaseItemSemanticEditPolicy.LinkConstraints |
getLinkConstraints() |
protected org.eclipse.gef.commands.Command |
getMoveCommand(org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest req) |
protected org.eclipse.gef.commands.Command |
getReorientReferenceRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest req) |
protected org.eclipse.gef.commands.Command |
getReorientRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest req) |
protected org.eclipse.gef.commands.Command |
getSemanticCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest request) |
protected org.eclipse.gef.commands.Command |
getSemanticCommandSwitch(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest req) |
protected org.eclipse.gef.commands.Command |
getSetCommand(org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest req) |
protected int |
getVisualID(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest request)
Returns visual id from request parameters.
|
completeRequest, getReorientRefRelationshipSourceCommand, getReorientRefRelationshipTargetCommand, getReorientRelationshipSourceCommand, getReorientRelationshipTargetCommand, getTargetEditPart, shouldProceed, understandsRequest
public static final java.lang.String VISUAL_ID_KEY
protected CCDModelBaseItemSemanticEditPolicy(org.eclipse.gmf.runtime.emf.type.core.IElementType elementType)
public org.eclipse.gef.commands.Command getCommand(org.eclipse.gef.Request request)
getCommand
in interface org.eclipse.gef.EditPolicy
getCommand
in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
protected int getVisualID(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest request)
protected org.eclipse.gef.commands.Command getSemanticCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest request)
getSemanticCommand
in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
protected org.eclipse.gef.commands.Command addDeleteViewCommand(org.eclipse.gef.commands.Command mainCommand, org.eclipse.gmf.runtime.emf.type.core.requests.DestroyRequest completedRequest)
protected org.eclipse.gef.commands.Command getSemanticCommandSwitch(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest req)
protected org.eclipse.gef.commands.Command getConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest req)
protected org.eclipse.gef.commands.Command getCreateRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest req)
protected org.eclipse.gef.commands.Command getCreateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest req)
protected org.eclipse.gef.commands.Command getSetCommand(org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest req)
protected org.eclipse.gef.commands.Command getEditContextCommand(org.eclipse.gmf.runtime.emf.type.core.requests.GetEditContextRequest req)
protected org.eclipse.gef.commands.Command getDestroyElementCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest req)
protected org.eclipse.gef.commands.Command getDestroyReferenceCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest req)
protected org.eclipse.gef.commands.Command getDuplicateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DuplicateElementsRequest req)
protected org.eclipse.gef.commands.Command getMoveCommand(org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest req)
protected org.eclipse.gef.commands.Command getReorientReferenceRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest req)
protected org.eclipse.gef.commands.Command getReorientRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest req)
protected final org.eclipse.gef.commands.Command getGEFWrapper(org.eclipse.gmf.runtime.common.core.command.ICommand cmd)
protected org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
protected void addDestroyShortcutsCommand(org.eclipse.gmf.runtime.common.core.command.ICompositeCommand cmd, org.eclipse.gmf.runtime.notation.View view)
public static CCDModelBaseItemSemanticEditPolicy.LinkConstraints getLinkConstraints()