Examples of IFXPrimitiveProperty


Examples of at.bestsolution.efxclipse.tooling.model.IFXPrimitiveProperty

                  for (IFXProperty p : fxclass.getAllStaticProperties().values()) {
                    String proposalValue = fxclass.getSimpleName() + "." + p.getName() + ">" + "</" + fxclass.getSimpleName() + "." + p.getName() + ">";
                    String sType;

                    if (p instanceof IFXPrimitiveProperty) {
                      IFXPrimitiveProperty pp = (IFXPrimitiveProperty) p;
                      sType = pp.getType() == Type.STRING ? "String" : pp.getType().jvmType();
                    } else if (p instanceof IFXObjectProperty) {
                      IFXObjectProperty op = (IFXObjectProperty) p;
                      sType = op.getElementTypeAsString(false);
                    } else if (p instanceof IFXEnumProperty) {
                      IFXEnumProperty ep = (IFXEnumProperty) p;
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.model.IFXPrimitiveProperty

        IFXClass fxSourceClazz = FXPlugin.getClassmodel().findClass(javaProject, sourceType);
        IFXClass fxTargetClass = FXPlugin.getClassmodel().findClass(javaProject, targetType);
        IFXProperty targetProperty = fxTargetClass.getProperty(property.getName());
       
        if( targetProperty instanceof IFXPrimitiveProperty ) {
          IFXPrimitiveProperty pp = (IFXPrimitiveProperty) targetProperty;
          for( IFXProperty sourceProp: fxSourceClazz.getAllProperties().values() ) {
            if( sourceProp instanceof IFXEventHandlerProperty ) {
              continue;
            }
           
            boolean select = false;
            if( pp.getType() == Type.STRING ) {
              select = true;
            } else {
              if( sourceProp instanceof IFXPrimitiveProperty ) {
                IFXPrimitiveProperty sp = (IFXPrimitiveProperty) sourceProp;
                if( pp.getType() == Type.BOOLEAN ) {
                  select = sp.getType() == Type.BOOLEAN;
                } else if( sp.getType() != Type.STRING && sp.getType() != Type.BOOLEAN ) {
                  select = true;
                }
              }
            }
           
            if( select ) {
              String typeName = "";
              if( sourceProp instanceof IFXPrimitiveProperty ) {
                IFXPrimitiveProperty sp = (IFXPrimitiveProperty) sourceProp;
                if( sp.getType() == Type.STRING ) {
                  typeName = "String";
                } else {
                  typeName = sp.getType().jvmType();
                }
              } else if (sourceProp instanceof IFXCollectionProperty ) {
                typeName = ((IFXCollectionProperty)sourceProp).getCollectionAsString();
              } else if( sourceProp instanceof IFXEnumProperty ) {
                typeName = ((IFXEnumProperty)sourceProp).getEnumTypeAsString(false);
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.