Package org.eclipse.papyrus.sysml.blocks

Examples of org.eclipse.papyrus.sysml.blocks.Dimension


   *            : the new Dimension (an InstanceSpecification stereotyped with a Dimension).
   */
  public void setDimensionForPrimitiveType(Element pt, InstanceSpecification is) {
    if (is != null && pt != null) {
      final Stereotype valueType = pt.getAppliedStereotype("SysML::Blocks::ValueType");
      final Dimension newDimension = (Dimension)is.getStereotypeApplication(is
          .getAppliedStereotype("SysML::Blocks::Dimension"));
      pt.setValue(valueType, "dimension", newDimension);
    }
  }
View Full Code Here


      if (stereotype instanceof ValueType) {
        ValueType valueType = (ValueType)stereotype;
        if (instanceSpecification.getStereotypeApplications() != null) {
          stereotype = instanceSpecification.getStereotypeApplications().get(0);
          if (stereotype instanceof Dimension) {
            Dimension dimension = (Dimension)stereotype;
            valueType.setDimension(dimension);
          }
        }
      }
    }
View Full Code Here

        result = defaultCase(theEObject);
      return result;
    }
    case BlocksPackage.DIMENSION:
    {
      Dimension dimension = (Dimension)theEObject;
      T result = caseDimension(dimension);
      if(result == null)
        result = defaultCase(theEObject);
      return result;
    }
View Full Code Here

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated
   */
  public void setDimension(Dimension newDimension) {
    Dimension oldDimension = dimension;
    dimension = newDimension;
    if(eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.UNIT__DIMENSION, oldDimension, dimension));
  }
View Full Code Here

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated
   */
  public void setDimension(Dimension newDimension) {
    Dimension oldDimension = dimension;
    dimension = newDimension;
    if(eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.VALUE_TYPE__DIMENSION, oldDimension, dimension));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.papyrus.sysml.blocks.Dimension

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.