Examples of IFXCtrlEventMethod


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

                reporter.addMessage(this, message);
              }
            } else {
              IFXProperty p = props.get(attribute.getNodeName());
              if (p instanceof IFXEventHandlerProperty) {
                IFXCtrlEventMethod evtMethod = fxCtrl.getAllEventMethods().get(attribute.getNodeValue().substring(1));
                if (evtMethod == null) {
                  String methodName = nnm.item(j).getNodeValue().substring(1);
                  FXMLValidationMessage message = new FXMLValidationMessage(IMessage.HIGH_SEVERITY, "FXMLValidator.unknownControllerMethod", fxCtrl.getSimpleName(), methodName);
                  IDOMAttr domAttr = (IDOMAttr) attribute;
View Full Code Here

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

              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(currentNode.getText());
                    if( fxp != null ) {
                      HyperlinkImpl h = new HyperlinkImpl(region, fxp.getJavaElement());
                      if( links == null || links.length == 0 ) {
                        return new IHyperlink[] { h };
                      } else {
                        IHyperlink[] rv = new IHyperlink[links.length+1];
                        System.arraycopy(links, 0, rv, 0, rv.length);
View Full Code Here

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

        Attr a = e.getAttributeNodeNS("http://javafx.com/fxml", "controller");
        if (a != null) {
          IType t = Util.findType(a.getValue(), d);
          if( t != null ) {
            IFXCtrlClass cl = FXPlugin.getClassmodel().findCtrlClass(t.getJavaProject(), t);
             IFXCtrlEventMethod method = cl.getAllEventMethods().get(attribute.getNodeValue().substring(1));
             if( method != null ) {
               return method.getJavaElement();
             }
          }
        }
      }
    }
View Full Code Here

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

            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);
                  }
                }
              }
            }
          }
View Full Code Here

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

          error("Property is not an event property", propertyModel, FXGraphPackage.Literals.PROPERTY__NAME, -1);
          return;
        }
       
        if( fxCtrlClazz != null ) {
          IFXCtrlEventMethod m = fxCtrlClazz.getAllEventMethods().get(element.getMethodname());
          if( m == null ) {
            warning("The controller '"+ ctrlType.getElementName() +"' has no event method '"+element.getMethodname()+"'", FXGraphPackage.Literals.CONTROLLER_HANDLED_VALUE_PROPERTY__METHODNAME,UNKNOWN_CONTROLLER_METHOD, element.getMethodname(), controller.getQualifiedName(), ((IFXEventHandlerProperty)fxProp).getEventType().getFullyQualifiedName());
          }
        }
      } catch (JavaModelException e) {
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.