Package org.eclipse.wst.xml.core.internal.provisional.document

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr


              if( f != null ) {
               
              } else {
                String fielname = attribute.getNodeValue();
                FXMLValidationMessage message = new FXMLValidationMessage(IMessage.ERROR_AND_WARNING, "FXMLValidator.unknownControllerField", fxCtrl.getSimpleName(), fielname);
                IDOMAttr domAttr = (IDOMAttr) attribute;
                message.setLength(getAttributeLength(structuredDocumentRegion, domAttr));
                message.setOffset(domAttr.getStartOffset());

                UnknownControllerFieldQuickAssist processor = new UnknownControllerFieldQuickAssist(fielname, type, fxCtrl);
                message.setAttribute(IQuickAssistProcessor.class.getName(), processor);
                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;

                  message.setLength(getAttributeLength(structuredDocumentRegion, domAttr));
                  message.setOffset(domAttr.getStartOffset());

                  UnknownControllerEventMethodQuickFixAssist processor = new UnknownControllerEventMethodQuickFixAssist(methodName, fxCtrl, (IFXEventHandlerProperty) p);
                  message.setAttribute(IQuickAssistProcessor.class.getName(), processor);
                  reporter.addMessage(this, message);
                }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr

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.