Class CustomSourceRoleItemSemanticEditPolicy

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 CustomSourceRoleItemSemanticEditPolicy extends SourceRoleItemSemanticEditPolicy
The Class CustomSourceRoleItemSemanticEditPolicy.
  • Constructor Details

    • CustomSourceRoleItemSemanticEditPolicy

      public CustomSourceRoleItemSemanticEditPolicy()
  • 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.
      Overrides:
      getCreateRelationshipCommand in class SourceRoleItemSemanticEditPolicy
      Parameters:
      req - The request object to create the command
      Returns:
      The prepared creation command object
      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
    • 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 SourceRoleItemSemanticEditPolicy
      Parameters:
      req - the req
      Returns:
      the start create relationship command
      See Also: