Examples of IFXCtrlField


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

          NamedNodeMap nnm = node.getAttributes();
          Map<String, IFXProperty> props = e.getAllProperties();
          for (int j = 0; j < nnm.getLength(); j++) {
            Node attribute = nnm.item(j);
            if (attribute.getNodeName().equals("fx:id")) {
              IFXCtrlField f = fxCtrl.getAllFields().get(attribute.getNodeValue());
              IType type = e.getType();
             
              if( f != null ) {
               
              } else {
View Full Code Here

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

     
      try {
        IType type = javaProject.findType(controller.getQualifiedName());
        IFXCtrlClass fxClazz = FXPlugin.getClassmodel().findCtrlClass(javaProject, type);
        if( fxClazz != null ) {
          IFXCtrlField f = fxClazz.getAllFields().get(element.getName());
          if( f == null ) {
            // Defines should not lead to a warning because it is referenced later on
            if( !(element.eContainer() instanceof Define) ) {
              warning("The controller '"+type.getElementName()+"' has no field '"+element.getName()+"'", FXGraphPackage.Literals.ELEMENT__NAME, UNKNOWN_CONTROLLER_FIELD, element.getName(), controller.getQualifiedName(), element.getType().getQualifiedName());             
            }
          } else {
            IType fromType = javaProject.findType(element.getType().getQualifiedName());
            IType toType = f.getType();
            if( ! Util.assignable(fromType, toType) ) {
              error("The type '"+fromType.getElementName()+"' is not assignable to the controller fields type '"+toType.getElementName()+"'", FXGraphPackage.Literals.ELEMENT__NAME, CONTROLLER_FIELD_NOT_ASSIGNABLE, element.getName(), controller.getQualifiedName(), element.getType().getQualifiedName());
            }
          }
        }
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.