Package fd2.diagram.edit.commands

Examples of fd2.diagram.edit.commands.RequireRelationCreateCommand


  protected Command getCreateCommand(CreateElementRequest req) {
    if (Fd2ElementTypes.ExclusiveCaseRelation_3003 == req.getElementType()) {
      return getGEFWrapper(new ExclusiveCaseRelationCreateCommand(req));
    }
    if (Fd2ElementTypes.CaseOrRelation_3002 == req.getElementType()) {
      return getGEFWrapper(new CaseOrRelationCreateCommand(req));
    }
    return super.getCreateCommand(req);
  }
View Full Code Here


  /**
   * @generated
   */
  protected Command getCreateCommand(CreateElementRequest req) {
    if (Fd2ElementTypes.ExclusiveCaseRelation_3003 == req.getElementType()) {
      return getGEFWrapper(new ExclusiveCaseRelationCreateCommand(req));
    }
    if (Fd2ElementTypes.CaseOrRelation_3002 == req.getElementType()) {
      return getGEFWrapper(new CaseOrRelationCreateCommand(req));
    }
    return super.getCreateCommand(req);
View Full Code Here

  /**
   * @generated
   */
  protected Command getCreateCommand(CreateElementRequest req) {
    if (Fd2ElementTypes.FeatureNode_2001 == req.getElementType()) {
      return getGEFWrapper(new FeatureNodeCreateCommand(req));
    }
    return super.getCreateCommand(req);
  }
View Full Code Here

   */
  protected Command getStartCreateRelationshipCommand(
      CreateRelationshipRequest req) {
    if (Fd2ElementTypes.OneManyRelationTargetFeatureNodes_4004 == req
        .getElementType()) {
      return getGEFWrapper(new OneManyRelationTargetFeatureNodesCreateCommand(
          req, req.getSource(), req.getTarget()));
    }
    return null;
  }
View Full Code Here

   */
  protected Command getReorientReferenceRelationshipCommand(
      ReorientReferenceRelationshipRequest req) {
    switch (getVisualID(req)) {
    case OneManyRelationTargetFeatureNodesEditPart.VISUAL_ID:
      return getGEFWrapper(new OneManyRelationTargetFeatureNodesReorientCommand(
          req));
    }
    return super.getReorientReferenceRelationshipCommand(req);
  }
View Full Code Here

   */
  protected Command getReorientReferenceRelationshipCommand(
      ReorientReferenceRelationshipRequest req) {
    switch (getVisualID(req)) {
    case OneManyRelationTargetFeatureNodesEditPart.VISUAL_ID:
      return getGEFWrapper(new OneManyRelationTargetFeatureNodesReorientCommand(
          req));
    }
    return super.getReorientReferenceRelationshipCommand(req);
  }
View Full Code Here

    if (Fd2ElementTypes.MandatoryRelation_4008 == req.getElementType()) {
      return getGEFWrapper(new MandatoryRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
    }
    if (Fd2ElementTypes.OptionalRelation_4009 == req.getElementType()) {
      return getGEFWrapper(new OptionalRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
    }
    if (Fd2ElementTypes.RequireRelation_4006 == req.getElementType()) {
      return getGEFWrapper(new RequireRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
View Full Code Here

    if (Fd2ElementTypes.MandatoryRelation_4008 == req.getElementType()) {
      return getGEFWrapper(new MandatoryRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
    }
    if (Fd2ElementTypes.OptionalRelation_4009 == req.getElementType()) {
      return getGEFWrapper(new OptionalRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
    }
    if (Fd2ElementTypes.RequireRelation_4006 == req.getElementType()) {
      return getGEFWrapper(new RequireRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
View Full Code Here

      ReorientRelationshipRequest req) {
    switch (getVisualID(req)) {
    case MandatoryRelationEditPart.VISUAL_ID:
      return getGEFWrapper(new MandatoryRelationReorientCommand(req));
    case OptionalRelationEditPart.VISUAL_ID:
      return getGEFWrapper(new OptionalRelationReorientCommand(req));
    case RequireRelationEditPart.VISUAL_ID:
      return getGEFWrapper(new RequireRelationReorientCommand(req));
    case ExcludesRelationEditPart.VISUAL_ID:
      return getGEFWrapper(new ExcludesRelationReorientCommand(req));
    }
View Full Code Here

    if (Fd2ElementTypes.OptionalRelation_4009 == req.getElementType()) {
      return getGEFWrapper(new OptionalRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
    }
    if (Fd2ElementTypes.RequireRelation_4006 == req.getElementType()) {
      return getGEFWrapper(new RequireRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
    }
    if (Fd2ElementTypes.ExcludesRelation_4010 == req.getElementType()) {
      return getGEFWrapper(new ExcludesRelationCreateCommand(req, req
          .getSource(), req.getTarget()));
View Full Code Here

TOP

Related Classes of fd2.diagram.edit.commands.RequireRelationCreateCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.