org.eclipse.gmf.map.editor.edit.policies
Class GMFMapBaseItemSemanticEditPolicy

java.lang.Object
  extended by org.eclipse.gef.editpolicies.AbstractEditPolicy
      extended by org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
          extended by org.eclipse.gmf.map.editor.edit.policies.GMFMapBaseItemSemanticEditPolicy
All Implemented Interfaces:
org.eclipse.gef.EditPolicy, org.eclipse.gef.RequestConstants
Direct Known Subclasses:
CanvasMappingContentsItemSemanticEditPolicy, CanvasMappingItemSemanticEditPolicy, ChildReferenceItemSemanticEditPolicy, ChildReferenceOwnedChildItemSemanticEditPolicy, ChildReferenceReferencedChildItemSemanticEditPolicy, CompartmentMappingChildrenItemSemanticEditPolicy, CompartmentMappingItemSemanticEditPolicy, DesignLabelMapping2ItemSemanticEditPolicy, DesignLabelMappingItemSemanticEditPolicy, FeatureLabelMapping2ItemSemanticEditPolicy, FeatureLabelMappingItemSemanticEditPolicy, LabelMapping2ItemSemanticEditPolicy, LabelMappingItemSemanticEditPolicy, LinkMappingItemSemanticEditPolicy, LinkMappingLabelsItemSemanticEditPolicy, MappingItemSemanticEditPolicy, NodeMappingContentsItemSemanticEditPolicy, NodeMappingItemSemanticEditPolicy, NodeMappingLabelsItemSemanticEditPolicy, TopNodeReferenceItemSemanticEditPolicy, TopNodeReferenceOwnedChildItemSemanticEditPolicy

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


Field Summary
 
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
GMFMapBaseItemSemanticEditPolicy()
           
 
Method Summary
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.gef.commands.Command getMoveCommand(org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest req)
           
protected  org.eclipse.gef.commands.Command getMSLWrapper(org.eclipse.gmf.runtime.common.core.command.ICommand cmd)
           
protected  org.eclipse.emf.ecore.EObject getRelationshipContainer(org.eclipse.emf.ecore.EObject element, org.eclipse.emf.ecore.EClass containerClass, org.eclipse.gmf.runtime.emf.type.core.IElementType relationshipType)
          Finds container element for the new relationship of the specified type.
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.emf.ecore.EObject getSemanticElement()
           
protected  org.eclipse.gef.commands.Command getSetCommand(org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest req)
           
 
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
completeRequest, getCommand, 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
 

Constructor Detail

GMFMapBaseItemSemanticEditPolicy

public GMFMapBaseItemSemanticEditPolicy()
Method Detail

getSemanticCommand

protected org.eclipse.gef.commands.Command getSemanticCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest request)
Overrides:
getSemanticCommand in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy

getSemanticCommandSwitch

protected org.eclipse.gef.commands.Command getSemanticCommandSwitch(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest req)

getConfigureCommand

protected org.eclipse.gef.commands.Command getConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest req)

getCreateRelationshipCommand

protected org.eclipse.gef.commands.Command getCreateRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest req)

getCreateCommand

protected org.eclipse.gef.commands.Command getCreateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest req)

getSetCommand

protected org.eclipse.gef.commands.Command getSetCommand(org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest req)

getEditContextCommand

protected org.eclipse.gef.commands.Command getEditContextCommand(org.eclipse.gmf.runtime.emf.type.core.requests.GetEditContextRequest req)

getDestroyElementCommand

protected org.eclipse.gef.commands.Command getDestroyElementCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest req)

getDestroyReferenceCommand

protected org.eclipse.gef.commands.Command getDestroyReferenceCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest req)

getDuplicateCommand

protected org.eclipse.gef.commands.Command getDuplicateCommand(org.eclipse.gmf.runtime.emf.type.core.requests.DuplicateElementsRequest req)

getMoveCommand

protected org.eclipse.gef.commands.Command getMoveCommand(org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest req)

getReorientReferenceRelationshipCommand

protected org.eclipse.gef.commands.Command getReorientReferenceRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest req)

getReorientRelationshipCommand

protected org.eclipse.gef.commands.Command getReorientRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest req)

getMSLWrapper

protected org.eclipse.gef.commands.Command getMSLWrapper(org.eclipse.gmf.runtime.common.core.command.ICommand cmd)

getSemanticElement

protected org.eclipse.emf.ecore.EObject getSemanticElement()

getRelationshipContainer

protected org.eclipse.emf.ecore.EObject getRelationshipContainer(org.eclipse.emf.ecore.EObject element,
                                                                 org.eclipse.emf.ecore.EClass containerClass,
                                                                 org.eclipse.gmf.runtime.emf.type.core.IElementType relationshipType)
Finds container element for the new relationship of the specified type. Default implementation goes up by containment hierarchy starting from the specified element and returns the first element that is instance of the specified container class.



Copyright © 2011. All Rights Reserved.