Package tk.eclipse.plugin.ftl

Examples of tk.eclipse.plugin.ftl.MethodTag$Param


            JSONArray jsonArray = jsonObject.getJSONArray("params");
            for(int i=0; i<jsonArray.length(); i++) {
                try {
                    String paramName    = jsonArray.getJSONObject(i).getString("name");
                    String paramDefault = jsonArray.getJSONObject(i).getString("default");
                    Param param = request.addNewParam();
                    param.setName(paramName);
                    param.setDefault(paramDefault);
                    param.setStyle(ParamStyle.Enum.forString("query"));
                    param.setType("xs:string");
                } catch (JSONException ex) {
                    Logger.getLogger(WADLGenerator.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        } catch (JSONException ex) {
View Full Code Here


            if ("GetTagImage".equals(commandStr)) {
                response.setContentType("image/png;");
                InputStream imageStream = null;
                String tagImageName = null;
                if (MethodTag.hasTag(tagName)) {
                    MethodTag tag = MethodTag.getTag(tagName);
                    try {
                        if (tag.hasImage()) {
                            imageStream = tag.openImageStream();
                        }
                    } catch (IOException e) {
                        WYSIWYGPlugin.logError("Unable to load tag image, using default", e);
                    }
                    if (tagImageName == null) {
View Full Code Here

                this.tagId = tagId;
            }

            @SuppressWarnings("unchecked")
            public Object exec(List args) throws TemplateModelException {
                MethodTag tag = MethodTag.getTag(tagId);
                int paramsSize = tag.params.size();
                if (paramsSize != args.size()) {
                    // FIXME add error
                    if (args.size() < paramsSize)
                        paramsSize = args.size();
View Full Code Here

TOP

Related Classes of tk.eclipse.plugin.ftl.MethodTag$Param

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.