Package at.bestsolution.efxclipse.tooling.model

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


      IType type = javaProject.findType(staticProperty.getType().getQualifiedName());
     
      if (type != null) {
        IFXClass fxClazz = FXPlugin.getClassmodel().findClass(javaProject, type);
        if (fxClazz != null) {
          IFXProperty fxProp = fxClazz.getStaticProperty(staticProperty.getName());
          if (fxProp != null) {
            completeProperty_ValueProposals(fxProp, model, context, FXGraphPackage.Literals.STATIC_CALL_VALUE_PROPERTY__VALUE, acceptor);
          }
        }
      }
View Full Code Here


      IType type = javaProject.findType(target.getType().getQualifiedName());
     
      if (type != null) {
        IFXClass fxClazz = FXPlugin.getClassmodel().findClass(javaProject, type);
        if (fxClazz != null) {
          IFXProperty fxProp = fxClazz.getStaticProperty(staticProperty.getName());
          if (fxProp != null) {
            completeProperty_ValueProposals(fxProp, model, context, FXGraphPackage.Literals.STATIC_VALUE_PROPERTY__VALUE, acceptor);
          }
        }
      }
View Full Code Here

      }
      IType ownerType = Util.findType(parent.getNodeName(), parent.getOwnerDocument());
      if( ownerType != null ) {
        IFXClass fxClass = FXPlugin.getClassmodel().findClass(ownerType.getJavaProject(), ownerType);
        if( fxClass != null ) {
          IFXProperty p = fxClass.getProperty(xmlnode.getNodeName());
          if( p != null ) {
            return p.getJavaElement();
          }
        }
      }
    } else {
      if( xmlnode.getNodeName().contains(".") ) {
        String[] parts = xmlnode.getNodeName().split("\\.");
        IType ownerType = Util.findType(parts[0], xmlnode.getOwnerDocument());
        if( ownerType != null ) {
          IFXClass fxClass = FXPlugin.getClassmodel().findClass(ownerType.getJavaProject(), ownerType);
          if( fxClass != null ) {
            IFXProperty p = fxClass.getStaticProperty(parts[1]);
            if( p != null ) {
              return p.getJavaElement();
            }
          }
        }
      } else {
        IType ownerType = Util.findType(xmlnode.getNodeName(), xmlnode.getOwnerDocument());
View Full Code Here

        String[] parts = attribute.getNodeName().split("\\.");
        IType ownerType = Util.findType(parts[0], parent.getOwnerDocument());
        if( ownerType != null ) {
          IFXClass fxClass = FXPlugin.getClassmodel().findClass(ownerType.getJavaProject(), ownerType);
          if( fxClass != null ) {
            IFXProperty p = fxClass.getStaticProperty(parts[1]);
            if( p != null ) {
              return p.getJavaElement();
            }
          }
        }
      } else {
        IType ownerType = Util.findType(parent.getNodeName(), parent.getOwnerDocument());
        if( ownerType != null ) {
          IFXClass fxClass = FXPlugin.getClassmodel().findClass(ownerType.getJavaProject(), ownerType);
          if( fxClass != null ) {
            IFXProperty p = fxClass.getProperty(attribute.getNodeName());
            if( p != null ) {
              return p.getJavaElement();
            }
          }
        }
      }
    }
View Full Code Here

      }
    }
   
    if( attribute != null ) {
      Node parent = xmlnode;
      IFXProperty p = null;
     
      if( "http://javafx.com/fxml".equals(attribute.getNamespaceURI()) ) {
        Document d = xmlnode.getOwnerDocument();
        return Util.findType(attribute.getNodeValue(), d);
      }
View Full Code Here

        if( e.getType() != null ) {
          IType t = getJDTType(e.getType().getType());
          if( t != null ) {
            IFXClass fxClass = FXPlugin.getClassmodel().findClass(t.getJavaProject(), t);
            if( fxClass != null ) {
              IFXProperty fxp = fxClass.getProperty(p.getName());
              if( fxp != null ) {
                return createHover(fxp.getJavaElement(), object, viewer, region);
              }
            }
          }
        }
      }
    } else if( object instanceof StaticCallValueProperty ) {
      StaticCallValueProperty sp = (StaticCallValueProperty) object;
      if( sp.getType() != null ) {
        IType t = getJDTType(sp.getType().getType());
        if( t != null ) {
          IFXClass fxClass = FXPlugin.getClassmodel().findClass(t.getJavaProject(), t);
          if( fxClass != null ) {
            IFXProperty fxp = fxClass.getStaticProperty(sp.getName());
            if( fxp != null ) {
              return createHover(fxp.getJavaElement(), object, viewer, region);
            }
          }
        }
      }
    } else if( object instanceof StaticValueProperty ) {
      StaticValueProperty sp = (StaticValueProperty) object;
     
      EObject eo = sp.eContainer();
      Element target = null;
     
      while( eo.eContainer() != null ) {
        if( eo.eContainer() instanceof Element ) {
          target = (Element) eo.eContainer();
          break;
        }
        eo = eo.eContainer();
      }
         
      if( target != null ) {
        if( target.getType() != null ) {
          IType t = getJDTType(target.getType().getType());
          if( t != null ) {
            IFXClass fxClass = FXPlugin.getClassmodel().findClass(t.getJavaProject(), t);
            if( fxClass != null ) {
              IFXProperty fxp = fxClass.getStaticProperty(sp.getName());
              if( fxp != null ) {
                return createHover(fxp.getJavaElement(), object, viewer, region);
              }
            }
          }
        }
      }
    } else if( object instanceof ValueProperty ) {
      if( object instanceof ControllerHandledValueProperty ) {
        ControllerHandledValueProperty cp = (ControllerHandledValueProperty) object;
       
        Model m = (Model) object.eResource().getContents().get(0);
       
        if( m != null ) {
          ComponentDefinition def = m.getComponentDef();
          if( def != null ) {
            if( def.getController() != null && def.getController().getType() != null) {
              IType t = getJDTType(def.getController().getType());
              if( t != null ) {
                IFXCtrlClass fxClass = FXPlugin.getClassmodel().findCtrlClass(t.getJavaProject(), t);
                if( fxClass != null ) {
                  IFXCtrlEventMethod fxp = fxClass.getAllEventMethods().get(cp.getMethodname());
                  if( fxp != null ) {
                    return createHover(fxp.getJavaElement(), object, viewer, region);
                  }
                }
              }
            }
          }
        }
      } else if( object instanceof SimpleValueProperty ) {
        SimpleValueProperty sp = (SimpleValueProperty) object;
        if( sp.eContainer() instanceof Property && sp.getStringValue() != null ) {
          Property p = (Property) sp.eContainer();
         
          if( p.eContainer() instanceof Element ) {
            Element e = (Element) p.eContainer();
            if( e.getType() != null ) {
              IType t = getJDTType(e.getType().getType());
              if( t != null ) {
                IFXClass fxClass = FXPlugin.getClassmodel().findClass(t.getJavaProject(), t);
                if( fxClass != null ) {
                  IFXProperty fxp = fxClass.getProperty(p.getName());
                  if( fxp instanceof IFXEnumProperty ) {
                    IType enumType = ((IFXEnumProperty) fxp).getEnumType();
                    try {
                      for (IField f : enumType.getFields()) {
                        if (Flags.isEnum(f.getFlags())) {
View Full Code Here

        IType elType = javaProject.findType(elementModel.getType().getQualifiedName());
       
        IFXCtrlClass fxCtrlClazz = FXPlugin.getClassmodel().findCtrlClass(javaProject, ctrlType);
        IFXClass fxElClass = FXPlugin.getClassmodel().findClass(javaProject, elType);
       
        IFXProperty fxProp = fxElClass.getAllProperties().get(propertyModel.getName());
       
        if( !(fxProp instanceof IFXEventHandlerProperty) ) {
          error("Property is not an event property", propertyModel, FXGraphPackage.Literals.PROPERTY__NAME, -1);
          return;
        }
View Full Code Here

        rv.put(e.getKey(), p)
      }
    }
   
    for( Entry<String, IMethod> e : builderProperties.entrySet() ) {
      IFXProperty p = rv.get(e.getKey());
      if( p == null ) {
        continue;
      }
     
      if( ! (p instanceof IFXCollectionProperty) ) {
        if( ! p.isSetable() ) {
          p = getProperty(fxClass, e.getKey(), e.getValue());
          if( p != null ) {
            rv.put(e.getKey(), p)
          }
        }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.model.IFXProperty

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.