Package eu.admire.dispel.references

Examples of eu.admire.dispel.references.PrimitiveTypeReference


    if (eObj instanceof LocalVariable) {

      LocalVariable lv = (LocalVariable) editPart
          .resolveSemanticElement();

      PrimitiveTypeReference ptr = ReferencesFactory.eINSTANCE
          .createPrimitiveTypeReference();

      if (action.getId().contains("AnyTypeID"))
        ptr.setPrimitiveType(TypesFactory.eINSTANCE.createAny());
      if (action.getId().contains("StringTypeID"))
        ptr.setPrimitiveType(TypesFactory.eINSTANCE.createString());
      if (action.getId().contains("BooleanTypeID"))
        ptr.setPrimitiveType(TypesFactory.eINSTANCE.createBoolean());
      if (action.getId().contains("IntegerTypeID"))
        ptr.setPrimitiveType(TypesFactory.eINSTANCE.createInteger());
      if (action.getId().contains("RealTypeID"))
        ptr.setPrimitiveType(TypesFactory.eINSTANCE.createReal());

      cmd = SetCommand.create(
          editPart.getEditingDomain(),
          eObj,
          (EStructuralFeature) eObj.eClass().getEStructuralFeature(
View Full Code Here


        LocalVariable lv = (LocalVariable) editPart
            .resolveSemanticElement();

        if (lv.getTypeReference() instanceof PrimitiveTypeReference) {

          PrimitiveTypeReference ptr = (PrimitiveTypeReference) lv
              .getTypeReference();

          if (action.getId().contains("AnyTypeID")
              && ptr.getPrimitiveType() instanceof eu.admire.dispel.types.Any)
            action.setChecked(true);
          if (action.getId().contains("StringTypeID")
              && ptr.getPrimitiveType() instanceof eu.admire.dispel.types.String)
            action.setChecked(true);
          if (action.getId().contains("BooleanTypeID")
              && ptr.getPrimitiveType() instanceof eu.admire.dispel.types.Boolean)
            action.setChecked(true);
          if (action.getId().contains("IntegerTypeID")
              && ptr.getPrimitiveType() instanceof eu.admire.dispel.types.Integer)
            action.setChecked(true);
          if (action.getId().contains("RealTypeID")
              && ptr.getPrimitiveType() instanceof eu.admire.dispel.types.Real)
            action.setChecked(true);

        }
      }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.references.PrimitiveTypeReference

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.