Package tk.eclipse.plugin.htmleditor

Examples of tk.eclipse.plugin.htmleditor.ICustomTagValidator


        // I can't judge that this case is marked an error...
      } else {
        String prefix  = dim[0];
//        String tagName = dim[1];
        String uri = info.getTaglibUri(prefix);
        ICustomTagValidator validator = null;
        if(uri!=null){
          ICustomTagValidatorContributer contributer = HTMLPlugin.getDefault().getCustomTagValidatorContributer(uri);
          if(contributer!=null){
            validator = contributer.getConverter(dim[1]);
          }
         
          if(validator!=null){
            HashMap<String, String> attrMap = new HashMap<String, String>();
            FuzzyXMLAttribute[] attrs = element.getAttributes();
            for(int i=0;i<attrs.length;i++){
              attrMap.put(attrs[i].getName(),attrs[i].getValue());
            }
            validator.validate(this, attrMap,element,info);
            return;
          }
        }
        if(!prefix.equals("jsp")){
          TLDInfo tld = getTLDInfo(prefix);
View Full Code Here

TOP

Related Classes of tk.eclipse.plugin.htmleditor.ICustomTagValidator

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.