Package fd2.provider

Examples of fd2.provider.IdentifiableItemProvider


      if (setting.getEStructuralFeature() != Fd2Package.eINSTANCE
          .getOneOneRelation_TargetFeatureNode()
          || false == setting.getEObject() instanceof RequireRelation) {
        continue;
      }
      RequireRelation link = (RequireRelation) setting.getEObject();
      if (RequireRelationEditPart.VISUAL_ID != Fd2VisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      if (false == link.eContainer() instanceof BaseFeatureNode) {
        continue;
      }
      BaseFeatureNode container = (BaseFeatureNode) link.eContainer();
      result.add(new Fd2LinkDescriptor(container, target, link,
          Fd2ElementTypes.RequireRelation_4006,
          RequireRelationEditPart.VISUAL_ID));

    }
View Full Code Here


  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

TOP

Related Classes of fd2.provider.IdentifiableItemProvider

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.