Examples of ExcludesRelation


Examples of fd2.ExcludesRelation

                }
              }

            }
          } else if (DGelem instanceof ExcludesRelation) {
            ExcludesRelation excludeRelation = (ExcludesRelation) DGelem;
            if (excludeRelation.getSourceFeature().getName()
                .contentEquals(AE.getFeatureElement())) {
             
              String excludesElementName = excludeRelation.getTargetFeature().getName();
              AE.addExcludesRelation(excludesElementName);
             
              for (AssociatedElement parentSearchAE : DG
                  .getDiagramAssociations()
                  .getElements()) {
View Full Code Here

Examples of fd2.ExcludesRelation

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

    ExcludesRelation newElement = Fd2Factory.eINSTANCE
        .createExcludesRelation();
    getContainer().getDiagramElements().add(newElement);
    newElement.setSourceFeature(getSource());
    newElement.setTargetFeature(getTarget());
    doConfigure(newElement, monitor, info);
    ((CreateElementRequest) getRequest()).setNewElement(newElement);
    return CommandResult.newOKCommandResult(newElement);

  }
View Full Code Here

Examples of fd2.ExcludesRelation

        .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();
      result.add(new Fd2LinkDescriptor(src, dst, link,
          Fd2ElementTypes.ExcludesRelation_4010,
          ExcludesRelationEditPart.VISUAL_ID));
    }
    return result;
View Full Code Here

Examples of fd2.ExcludesRelation

      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

Examples of fd2.ExcludesRelation

        .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
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.