Package fd2

Examples of fd2.Diagram


      if (setting.getEStructuralFeature() != Fd2Package.eINSTANCE
          .getExcludesRelation_TargetFeature()
          || false == setting.getEObject() instanceof ExcludesRelation) {
        continue;
      }
      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


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

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    ExclusiveCaseRelation newElement = Fd2Factory.eINSTANCE
        .createExclusiveCaseRelation();

    BaseFeatureNode owner = (BaseFeatureNode) getElementToEdit();
    owner.getChildRelations().add(newElement);

View Full Code Here

  /**
   * @generated
   */
  public static List getExclusiveCaseRelation_3003ContainedLinks(View view) {
    ExclusiveCaseRelation modelElement = (ExclusiveCaseRelation) view
        .getElement();
    List result = new LinkedList();
    result
        .addAll(getOutgoingFeatureModelFacetLinks_OneManyRelation_TargetFeatureNodes_4004(modelElement));
    return result;
View Full Code Here

  /**
   * @generated
   */
  public static List getExclusiveCaseRelation_3003OutgoingLinks(View view) {
    ExclusiveCaseRelation modelElement = (ExclusiveCaseRelation) view
        .getElement();
    List result = new LinkedList();
    result
        .addAll(getOutgoingFeatureModelFacetLinks_OneManyRelation_TargetFeatureNodes_4004(modelElement));
    return result;
View Full Code Here

        AE.cleanChildData();
        boolean wasElement = false;
        for (DiagramElement DGelem : FDe.getDiagramElements()) {
          if (DGelem instanceof FeatureNode) {
            FeatureNode baseNode = (FeatureNode) DGelem;
            if (baseNode.getName().contentEquals(
                AE.getFeatureElement())) {
              wasElement = true;
              for (AbstractRelation abstractRel : baseNode
                  .getChildRelations()) {
                if (abstractRel instanceof MandatoryRelation) {

                  String mandatoryElementName = ((MandatoryRelation) abstractRel)
                      .getTargetFeatureNode().getName();
View Full Code Here

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    FeatureNode newElement = Fd2Factory.eINSTANCE.createFeatureNode();

    Diagram owner = (Diagram) getElementToEdit();
    owner.getDiagramElements().add(newElement);

    doConfigure(newElement, monitor, info);
View Full Code Here

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    FeatureNode newElement = Fd2Factory.eINSTANCE.createFeatureNode();

    Diagram owner = (Diagram) getElementToEdit();
    owner.getDiagramElements().add(newElement);

    doConfigure(newElement, monitor, info);
View Full Code Here

    }
    View containerView = (View) view.eContainer();
    if (!containerView.isSetElement()) {
      return Collections.EMPTY_LIST;
    }
    FeatureNode modelElement = (FeatureNode) containerView.getElement();
    List result = new LinkedList();
    for (Iterator it = modelElement.getChildRelations().iterator(); it
        .hasNext();) {
      AbstractRelation childElement = (AbstractRelation) it.next();
      int visualID = Fd2VisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == ExclusiveCaseRelationEditPart.VISUAL_ID) {
View Full Code Here

  /**
   * @generated
   */
  public static List getFeatureNode_2001ContainedLinks(View view) {
    FeatureNode modelElement = (FeatureNode) view.getElement();
    List result = new LinkedList();
    result
        .addAll(getContainedTypeModelFacetLinks_MandatoryRelation_4008(modelElement));
    result
        .addAll(getContainedTypeModelFacetLinks_OptionalRelation_4009(modelElement));
View Full Code Here

TOP

Related Classes of fd2.Diagram

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.