Class CustomSinkRoleItemSemanticEditPolicy

java.lang.Object
org.eclipse.gef.editpolicies.AbstractEditPolicy
org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy
All Implemented Interfaces:
org.eclipse.gef.EditPolicy, org.eclipse.gef.RequestConstants

public class CustomSinkRoleItemSemanticEditPolicy extends SinkRoleItemSemanticEditPolicy
The Class CustomSinkRoleItemSemanticEditPolicy.
  • Constructor Details

    • CustomSinkRoleItemSemanticEditPolicy

      public CustomSinkRoleItemSemanticEditPolicy()
  • Method Details

    • getCreateRelationshipCommand

      protected org.eclipse.gef.commands.Command getCreateRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest req)
      Get the create relationship command or null / UnexecutableCommand instance if this is not an valid end for the connector creation. This has been manually adopted to fix this connection for AssemblyEventConnectors
      Overrides:
      getCreateRelationshipCommand in class SinkRoleItemSemanticEditPolicy
      Parameters:
      req - the req
      Returns:
      the creates the relationship command
      Generated class or method.
      not
    • getStartCreateRelationshipCommandEventConnectors

      protected org.eclipse.gef.commands.Command getStartCreateRelationshipCommandEventConnectors(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest req)
      Helper to create an instance of an outgoing event connector.
      Parameters:
      req - The request describing the command to be created.
      Returns:
      The prepared command to create an AssemblyEventConnector
      Generated class or method.
      not
    • getCompleteCreateRelationshipCommand

      protected org.eclipse.gef.commands.Command getCompleteCreateRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest req)
      Create the command to complete the relationship. This has manually be adopted to set the container and contexts in the request.
      Overrides:
      getCompleteCreateRelationshipCommand in class SinkRoleItemSemanticEditPolicy
      Parameters:
      req - the req
      Returns:
      the complete create relationship command
      Generated class or method.
      not
    • getCompleteCreateRelationshipCommandAssemblyEventConnector

      protected org.eclipse.gef.commands.Command getCompleteCreateRelationshipCommandAssemblyEventConnector(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest req)
      Create the command to complete the relationship. This has manually be adopted to set the container and contexts in the request.
      Parameters:
      req - The request object for this command request
      Returns:
      The prepared command.
      Generated class or method.
      not
    • getStartCreateRelationshipCommand

      protected org.eclipse.gef.commands.Command getStartCreateRelationshipCommand(org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest req)
      Gets the start create relationship command.
      Overrides:
      getStartCreateRelationshipCommand in class SinkRoleItemSemanticEditPolicy
      Parameters:
      req - the req
      Returns:
      the start create relationship command
      See Also: