Examples of ICustomTagConverter


Examples of tk.eclipse.plugin.htmleditor.ICustomTagConverter

      String[] dim = tagName.split(":");
     
      // get URI from prefix
      String uri = info.getTaglibUri(dim[0]);
      // get converter
      ICustomTagConverter converter = null;
      if(uri!=null){
        ICustomTagConverterContributer contributer = HTMLPlugin.getDefault().getCustomTagContributer(uri);
        if(contributer!=null){
          converter = contributer.getConverter(dim[1]);
        }
      }
      if(converter!=null){
        HashMap attrMap = new HashMap();
        FuzzyXMLAttribute[] attrs = element.getAttributes();
        for(int i=0;i<attrs.length;i++){
          attrMap.put(attrs[i].getName(),attrs[i].getValue());
        }
        sb.append(converter.process(attrMap,element.getChildren(),info));
        return sb.toString();
      }
    }
   
    if(element.getChildren().length==0){
View Full Code Here

Examples of tk.eclipse.plugin.htmleditor.ICustomTagConverter

      String[] dim = tagName.split(":");

      // get URI from prefix
      String uri = info.getTaglibUri(dim[0]);
      // get converter
      ICustomTagConverter converter = null;
      if (uri != null) {
        ICustomTagConverterContributer contributer = HTMLPlugin.getDefault().getCustomTagContributer(uri);
        if (contributer != null) {
          converter = contributer.getConverter(dim[1]);
        }
      }
      if (converter != 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());
        }
        sb.append(converter.process(attrMap, element.getChildren(), info));
        return sb.toString();
      }
    }

    if (element.getChildren().length == 0) {
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.