Package OntoUML

Examples of OntoUML.Derivation


        if (result == null) result = caseNamedElement(dependencyRelationship);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.DERIVATION: {
        Derivation derivation = (Derivation)theEObject;
        T result = caseDerivation(derivation);
        if (result == null) result = caseDependencyRelationship(derivation);
        if (result == null) result = caseDirectedBinaryRelationship(derivation);
        if (result == null) result = caseDirectedRelationship(derivation);
        if (result == null) result = caseRelationalClassifier(derivation);
View Full Code Here


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

      this.add(fFigureDerivationNameLabelFigure);

      Derivation d = (Derivation) ((View) derivationeditpart.getModel())
          .getElement();

      for (int i = 0; i < d.getSource().size(); ++i) {
        ((Property) d.getSource().get(i)).setLower(((Property) d
            .getSource().get(i)).derivarLowerDerivation());
        ((Property) d.getSource().get(i)).setUpper(((Property) d
            .getSource().get(i)).derivarUpperDerivation());
      }

      //      fFigureDerivationSourceCardinalitiesLabelFigure = new WrappingLabel();
      //      String text = new String("");
      //      if ((((Property) d.getSource().get(0)).getLower() == 0)
      //          && (((Property) d.getSource().get(0)).getUpper() == -1))
      //        text = "*";
      //      else {
      //        text = text
      //            .concat(((Integer) (((Property) d.getSource().get(0))
      //                .getLower())).toString());
      //        if (((Property) d.getSource().get(0)).getUpper() != ((Property) d
      //            .getSource().get(0)).getLower()) {
      //          text = text.concat("..");
      //          if (((Property) d.getSource().get(0)).getUpper() == -1)
      //            text = text.concat("*");
      //          else
      //            text = text.concat(((Integer) (((Property) d
      //                .getSource().get(0)).getUpper())).toString());
      //        }
      //      }
      //
      //      fFigureDerivationSourceCardinalitiesLabelFigure.setText(text);
      //
      //      this.add(fFigureDerivationSourceCardinalitiesLabelFigure);
      //
      //      fFigureDerivationTargetCardinalitiesLabelFigure = new WrappingLabel();
      //      text = "";
      //      if ((((Property) d.getTarget().get(0)).getLower() == 0)
      //          && (((Property) d.getTarget().get(0)).getUpper() == -1))
      //        text = "*";
      //      else {
      //        text = text
      //            .concat(((Integer) (((Property) d.getTarget().get(0))
      //                .getLower())).toString());
      //        if (((Property) d.getTarget().get(0)).getUpper() != ((Property) d
      //            .getTarget().get(0)).getLower()) {
      //          text = text.concat("..");
      //          if (((Property) d.getTarget().get(0)).getUpper() == -1)
      //            text = text.concat("*");
      //          else
      //            text = text.concat(((Integer) (((Property) d
      //                .getTarget().get(0)).getUpper())).toString());
      //        }
      //      }
      //
      //      fFigureDerivationTargetCardinalitiesLabelFigure.setText(text);
      //
      //      this.add(fFigureDerivationTargetCardinalitiesLabelFigure);

      if (!d.getSource().isEmpty())
        ((Property) d.getSource().get(0))
            .setContainer(d.getContainer());
      if (!d.getTarget().isEmpty())
        ((Property) d.getTarget().get(0))
            .setContainer(d.getContainer());

    }
View Full Code Here

     * <!-- end-user-doc -->
     * @generated NOT
     */
    private void updateContents(DerivationEditPart derivationeditpart) {

      Derivation d = (Derivation) ((View) derivationeditpart.getModel())
          .getElement();

      for (int i = 0; i < d.getSource().size(); ++i) {
        ((Property) d.getSource().get(i)).setLower(((Property) d
            .getSource().get(i)).derivarLowerDerivation());
        ((Property) d.getSource().get(i)).setUpper(((Property) d
            .getSource().get(i)).derivarUpperDerivation());
      }

      //      String text = new String("");
      //      if ((((Property) d.getSource().get(0)).getLower() == 0)
View Full Code Here

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

      this.add(fFigureDerivationNameLabelFigure);

      Derivation d = (Derivation) ((View) derivationeditpart.getModel())
          .getElement();

      for (int i = 0; i < d.getSource().size(); ++i) {
        ((Property) d.getSource().get(i)).setLower(((Property) d
            .getSource().get(i)).derivarLowerDerivation());
        ((Property) d.getSource().get(i)).setUpper(((Property) d
            .getSource().get(i)).derivarUpperDerivation());
      }

      //      fFigureDerivationSourceCardinalitiesLabelFigure = new WrappingLabel();
      //      String text = new String("");
      //      if ((((Property) d.getSource().get(0)).getLower() == 0)
      //          && (((Property) d.getSource().get(0)).getUpper() == -1))
      //        text = "*";
      //      else {
      //        text = text
      //            .concat(((Integer) (((Property) d.getSource().get(0))
      //                .getLower())).toString());
      //        if (((Property) d.getSource().get(0)).getUpper() != ((Property) d
      //            .getSource().get(0)).getLower()) {
      //          text = text.concat("..");
      //          if (((Property) d.getSource().get(0)).getUpper() == -1)
      //            text = text.concat("*");
      //          else
      //            text = text.concat(((Integer) (((Property) d
      //                .getSource().get(0)).getUpper())).toString());
      //        }
      //      }
      //
      //      fFigureDerivationSourceCardinalitiesLabelFigure.setText(text);
      //
      //      this.add(fFigureDerivationSourceCardinalitiesLabelFigure);
      //
      //      fFigureDerivationTargetCardinalitiesLabelFigure = new WrappingLabel();
      //      text = "";
      //      if ((((Property) d.getTarget().get(0)).getLower() == 0)
      //          && (((Property) d.getTarget().get(0)).getUpper() == -1))
      //        text = "*";
      //      else {
      //        text = text
      //            .concat(((Integer) (((Property) d.getTarget().get(0))
      //                .getLower())).toString());
      //        if (((Property) d.getTarget().get(0)).getUpper() != ((Property) d
      //            .getTarget().get(0)).getLower()) {
      //          text = text.concat("..");
      //          if (((Property) d.getTarget().get(0)).getUpper() == -1)
      //            text = text.concat("*");
      //          else
      //            text = text.concat(((Integer) (((Property) d
      //                .getTarget().get(0)).getUpper())).toString());
      //        }
      //      }
      //
      //      fFigureDerivationTargetCardinalitiesLabelFigure.setText(text);
      //
      //      this.add(fFigureDerivationTargetCardinalitiesLabelFigure);

      if (!d.getSource().isEmpty())
        ((Property) d.getSource().get(0))
            .setContainer(d.getContainer());
      if (!d.getTarget().isEmpty())
        ((Property) d.getTarget().get(0))
            .setContainer(d.getContainer());

    }
View Full Code Here

     * <!-- end-user-doc -->
     * @generated NOT
     */
    private void updateContents(DerivationEditPart derivationeditpart) {

      Derivation d = (Derivation) ((View) derivationeditpart.getModel())
          .getElement();

      for (int i = 0; i < d.getSource().size(); ++i) {
        ((Property) d.getSource().get(i)).setLower(((Property) d
            .getSource().get(i)).derivarLowerDerivation());
        ((Property) d.getSource().get(i)).setUpper(((Property) d
            .getSource().get(i)).derivarUpperDerivation());
      }

      //      String text = new String("");
      //      if ((((Property) d.getSource().get(0)).getLower() == 0)
View Full Code Here

     * <!-- end-user-doc -->
     * @generated NOT
     */
    private void updateContents(DerivationEditPart derivationeditpart) {

      Derivation d = (Derivation) ((View) derivationeditpart.getModel())
          .getElement();

      /*      for (int i = 0; i < d.getSource().size(); ++i) {
       ((Property) d.getSource().get(i)).setLower(((Property) d
       .getSource().get(i)).derivarLowerDerivation());
       ((Property) d.getSource().get(i)).setUpper(((Property) d
       .getSource().get(i)).derivarUpperDerivation());
       }*/
      for (int i = 0; i < d.getSource().size(); ++i) {
        ((Property) d.getSource().get(i)).setLower(d
            .deriveLowerDerivation());
        ((Property) d.getSource().get(i)).setUpper(d
            .deriveUpperDerivation());
      }
    }
View Full Code Here

TOP

Related Classes of OntoUML.Derivation

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.