Package fd2.diagram.edit.policies

Examples of fd2.diagram.edit.policies.Fd2TextSelectionEditPolicy


  /**
   * @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

    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

    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));
    }
    return super.getReorientRelationshipCommand(req);
  }
View Full Code Here

TOP

Related Classes of fd2.diagram.edit.policies.Fd2TextSelectionEditPolicy

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.