Package OntoUML

Examples of OntoUML.MaterialAssociation


        if (result == null) result = caseElement(kind);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.MATERIAL_ASSOCIATION: {
        MaterialAssociation materialAssociation = (MaterialAssociation)theEObject;
        T result = caseMaterialAssociation(materialAssociation);
        if (result == null) result = caseAssociation(materialAssociation);
        if (result == null) result = caseRelationship(materialAssociation);
        if (result == null) result = caseRelationalClassifier(materialAssociation);
        if (result == null) result = caseElement(materialAssociation);
View Full Code Here


      fFigureMaterialAssociationNameLabelFigure = new WrappingLabel();
      fFigureMaterialAssociationNameLabelFigure.setText("Name");

      this.add(fFigureMaterialAssociationNameLabelFigure);

      MaterialAssociation m = (MaterialAssociation) ((View) materialassociationeditpart
          .getModel()).getElement();

      for (int i = 0; i < m.getAssociationEnd().size(); ++i) {
        m.getAssociationEnd().get(i).setLower(
            m.getAssociationEnd().get(i)
                .derivarLowerMaterialAssociation());
        m.getAssociationEnd().get(i).setUpper(
            m.getAssociationEnd().get(i)
                .derivarUpperMaterialAssociation());
      }

      //      fFigureMaterialAssociationAssociationEnd1CardinalitiesLabelFigure = new WrappingLabel();
      //      String text = new String("");
      //      if ((m.getAssociationEnd().get(0).getLower() == 0)
      //          && (m.getAssociationEnd().get(0).getUpper() == -1))
      //        text = "*";
      //      else {
      //        text = text.concat(((Integer) (m.getAssociationEnd().get(0)
      //            .getLower())).toString());
      //        if (m.getAssociationEnd().get(0).getUpper() != m
      //            .getAssociationEnd().get(0).getLower()) {
      //          text = text.concat("..");
      //          if (m.getAssociationEnd().get(0).getUpper() == -1)
      //            text = text.concat("*");
      //          else
      //            text = text.concat(((Integer) (m.getAssociationEnd()
      //                .get(0).getUpper())).toString());
      //        }
      //      }
      //
      //      fFigureMaterialAssociationAssociationEnd1CardinalitiesLabelFigure
      //          .setText(text);
      //
      //      this
      //          .add(fFigureMaterialAssociationAssociationEnd1CardinalitiesLabelFigure);
      //
      //      fFigureMaterialAssociationAssociationEnd2CardinalitiesLabelFigure = new WrappingLabel();
      //      text = "";
      //      if ((m.getAssociationEnd().get(1).getLower() == 0)
      //          && (m.getAssociationEnd().get(1).getUpper() == -1))
      //        text = "*";
      //      else {
      //        text = text.concat(((Integer) (m.getAssociationEnd().get(1)
      //            .getLower())).toString());
      //        if (m.getAssociationEnd().get(1).getUpper() != m
      //            .getAssociationEnd().get(1).getLower()) {
      //          text = text.concat("..");
      //          if (m.getAssociationEnd().get(1).getUpper() == -1)
      //            text = text.concat("*");
      //          else
      //            text = text.concat(((Integer) (m.getAssociationEnd()
      //                .get(1).getUpper())).toString());
      //        }
      //      }
      //
      //      fFigureMaterialAssociationAssociationEnd2CardinalitiesLabelFigure
      //          .setText(text);
      //
      //      this
      //          .add(fFigureMaterialAssociationAssociationEnd2CardinalitiesLabelFigure);

      for (int i = 0; i < m.getAssociationEnd().size(); ++i) {
        ((Property) m.getAssociationEnd().get(i)).setContainer(m
            .getContainer());
      }
    }
View Full Code Here

     * @generated NOT
     */
    private void updateContents(
        MaterialAssociationEditPart materialassociationeditpart) {

      MaterialAssociation m = (MaterialAssociation) ((View) materialassociationeditpart
          .getModel()).getElement();

      for (int i = 0; i < m.getAssociationEnd().size(); ++i) {
        m.getAssociationEnd().get(i).setLower(
            m.getAssociationEnd().get(i)
                .derivarLowerMaterialAssociation());
        m.getAssociationEnd().get(i).setUpper(
            m.getAssociationEnd().get(i)
                .derivarUpperMaterialAssociation());
      }

      //      String text = new String("");
      //      if ((m.getAssociationEnd().get(0).getLower() == 0)
View Full Code Here

     * @generated NOT
     */
    private void updateContents(
        MaterialAssociationEditPart materialassociationeditpart) {

      MaterialAssociation m = (MaterialAssociation) ((View) materialassociationeditpart
          .getModel()).getElement();

      /*      for (int i = 0; i < m.getAssociationEnd().size(); ++i) {
       m.getAssociationEnd().get(i).setLower(
       m.getAssociationEnd().get(i)
       .derivarLowerMaterialAssociation());
       m.getAssociationEnd().get(i).setUpper(
       m.getAssociationEnd().get(i)
       .derivarUpperMaterialAssociation());
       }*/
      if (m.existsDerivationConnected()) {
        m.getAssociationEnd().get(0).setUpper(
            m.deriveUpperMaterialAssociationExt1());
        m.getAssociationEnd().get(1).setUpper(
            m.deriveUpperMaterialAssociationExt2());
      }
    }
View Full Code Here

TOP

Related Classes of OntoUML.MaterialAssociation

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.