Package fd2

Examples of fd2.CaseOrRelation


   */
  protected boolean canReorientSource() {
    if (!(oldEnd instanceof BaseFeatureNode && newEnd instanceof BaseFeatureNode)) {
      return false;
    }
    BaseFeatureNode target = getLink().getTargetFeature();
    if (!(getLink().eContainer() instanceof Diagram)) {
      return false;
    }
    Diagram container = (Diagram) getLink().eContainer();
    return Fd2BaseItemSemanticEditPolicy.LinkConstraints
View Full Code Here


   */
  protected boolean canReorientTarget() {
    if (!(oldEnd instanceof BaseFeatureNode && newEnd instanceof BaseFeatureNode)) {
      return false;
    }
    BaseFeatureNode source = getLink().getSourceFeature();
    if (!(getLink().eContainer() instanceof Diagram)) {
      return false;
    }
    Diagram container = (Diagram) getLink().eContainer();
    return Fd2BaseItemSemanticEditPolicy.LinkConstraints
View Full Code Here

      MandatoryRelation link = (MandatoryRelation) linkObject;
      if (MandatoryRelationEditPart.VISUAL_ID != Fd2VisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      BaseFeatureNode dst = link.getTargetFeatureNode();
      result.add(new Fd2LinkDescriptor(container, dst, link,
          Fd2ElementTypes.MandatoryRelation_4008,
          MandatoryRelationEditPart.VISUAL_ID));
    }
    return result;
View Full Code Here

      OptionalRelation link = (OptionalRelation) linkObject;
      if (OptionalRelationEditPart.VISUAL_ID != Fd2VisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      BaseFeatureNode dst = link.getTargetFeatureNode();
      result.add(new Fd2LinkDescriptor(container, dst, link,
          Fd2ElementTypes.OptionalRelation_4009,
          OptionalRelationEditPart.VISUAL_ID));
    }
    return result;
View Full Code Here

      RequireRelation link = (RequireRelation) linkObject;
      if (RequireRelationEditPart.VISUAL_ID != Fd2VisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      BaseFeatureNode dst = link.getTargetFeatureNode();
      result.add(new Fd2LinkDescriptor(container, dst, link,
          Fd2ElementTypes.RequireRelation_4006,
          RequireRelationEditPart.VISUAL_ID));
    }
    return result;
View Full Code Here

      ExcludesRelation link = (ExcludesRelation) linkObject;
      if (ExcludesRelationEditPart.VISUAL_ID != Fd2VisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      BaseFeatureNode dst = link.getTargetFeature();
      BaseFeatureNode src = link.getSourceFeature();
      result.add(new Fd2LinkDescriptor(src, dst, link,
          Fd2ElementTypes.ExcludesRelation_4010,
          ExcludesRelationEditPart.VISUAL_ID));
    }
    return result;
View Full Code Here

        continue;
      }
      if (false == link.eContainer() instanceof BaseFeatureNode) {
        continue;
      }
      BaseFeatureNode container = (BaseFeatureNode) link.eContainer();
      result.add(new Fd2LinkDescriptor(container, target, link,
          Fd2ElementTypes.MandatoryRelation_4008,
          MandatoryRelationEditPart.VISUAL_ID));

    }
View Full Code Here

        continue;
      }
      if (false == link.eContainer() instanceof BaseFeatureNode) {
        continue;
      }
      BaseFeatureNode container = (BaseFeatureNode) link.eContainer();
      result.add(new Fd2LinkDescriptor(container, target, link,
          Fd2ElementTypes.OptionalRelation_4009,
          OptionalRelationEditPart.VISUAL_ID));

    }
View Full Code Here

        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

      ExcludesRelation link = (ExcludesRelation) setting.getEObject();
      if (ExcludesRelationEditPart.VISUAL_ID != Fd2VisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      BaseFeatureNode src = link.getSourceFeature();
      result.add(new Fd2LinkDescriptor(src, target, link,
          Fd2ElementTypes.ExcludesRelation_4010,
          ExcludesRelationEditPart.VISUAL_ID));
    }
    return result;
View Full Code Here

TOP

Related Classes of fd2.CaseOrRelation

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.