Package tk.eclipse.plugin.ftl.MethodTag

Examples of tk.eclipse.plugin.ftl.MethodTag.MethodTagComparator


           
            if ("GetAllMethods".equals(commandStr)) {
           resultHtml.append(IOUtils.readStream(FtlFormat.class.getResourceAsStream("ftl.method.dialog.start")));

                List<MethodTag> tagsList = new ArrayList<MethodTag>(MethodTag.getAll().values());
                Collections.sort(tagsList, new MethodTagComparator());
                for (MethodTag tagInfo : tagsList) {
                    resultHtml.append("<option value=\"" + tagInfo.id + "\">" + tagInfo.name + "</option>");
                }
           resultHtml.append(IOUtils.readStream(FtlFormat.class.getResourceAsStream("ftl.method.dialog.end")));
            } else if ("GetAllVariables".equals(commandStr)) {
View Full Code Here


    }
    public static String createFtlMethodDialog() throws IOException{
      StringBuilder result = new StringBuilder();
      result.append(IOUtils.readStream(FtlFormat.class.getResourceAsStream("ckeditor.ftl.method.dialog.start")));
        List<MethodTag> tagsList = new ArrayList<MethodTag>(MethodTag.getAll().values());
        Collections.sort(tagsList, new MethodTagComparator());
   
        {
      CKSelectElement selectElement = new CKSelectElement();
          selectElement.setId("ELEMENT_TAG_TYPE").setLabel("editor.lang.FreemarkerTags.MethodTitle").setDefaultValue(tagsList.isEmpty() ? null : "'" + tagsList.get(0).id + "'");
            for (MethodTag tagInfo : tagsList)
View Full Code Here

TOP

Related Classes of tk.eclipse.plugin.ftl.MethodTag.MethodTagComparator

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.