Examples of MandatoryRelation


Examples of fd2.MandatoryRelation

    if (!canExecute()) {
      throw new ExecutionException(
          "Invalid arguments in create link command"); //$NON-NLS-1$
    }

    MandatoryRelation newElement = Fd2Factory.eINSTANCE
        .createMandatoryRelation();
    getSource().getChildRelations().add(newElement);
    newElement.setTargetFeatureNode(getTarget());
    doConfigure(newElement, monitor, info);
    ((CreateElementRequest) getRequest()).setNewElement(newElement);
    return CommandResult.newOKCommandResult(newElement);

  }
View Full Code Here

Examples of fd2.MandatoryRelation

        .hasNext();) {
      EObject linkObject = (EObject) links.next();
      if (false == linkObject instanceof MandatoryRelation) {
        continue;
      }
      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

Examples of fd2.MandatoryRelation

      if (setting.getEStructuralFeature() != Fd2Package.eINSTANCE
          .getOneOneRelation_TargetFeatureNode()
          || false == setting.getEObject() instanceof MandatoryRelation) {
        continue;
      }
      MandatoryRelation link = (MandatoryRelation) setting.getEObject();
      if (MandatoryRelationEditPart.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.MandatoryRelation_4008,
          MandatoryRelationEditPart.VISUAL_ID));

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.