Examples of VarTagInfo


Examples of tk.eclipse.plugin.vartag.VarTagInfo

      return;
        }
        if ("GetTagImage".equals(commandStr)) {
            response.setContentType("image/png;");
            InputStream imageStream = null;
            VarTagInfo varTagInfo = getVarTagSafely(javaType);
            if (varTagInfo.hasImage()) {
                imageStream = varTagInfo.openImageStream();
            } else {
                imageStream = WYSIWYGPlugin.loadTagImage(
                        WYSIWYGPlugin.getDefault().getBundle(), "metadata/var_icons/DefaultTag.png");
            }
            IOUtils.copyStream(imageStream, response.getOutputStream());
View Full Code Here

Examples of tk.eclipse.plugin.vartag.VarTagInfo

    }
        IOUtils.writeToStream(response.getOutputStream(), resultHtml.toString());
  }
   
  private VarTagInfo getVarTagSafely(String javaType) {
    VarTagInfo varTagInfo = varTags.get(javaType);
    if (varTagInfo == null) {
      WYSIWYGPlugin.logInfo("VarTag not found: " + javaType);
      varTagInfo = new VarTagInfo(null, javaType, "Tag not found ("+javaType+")", 250, 30, null, false);
    }
    return varTagInfo;
  }
View Full Code Here

Examples of tk.eclipse.plugin.vartag.VarTagInfo

        Document document = getDocument(new ByteArrayInputStream(formBytes));
        NodeList vartagElements = document.getElementsByTagName("customtag");
        for (int i = 0; i < vartagElements.getLength(); i++) {
            Node varNode = vartagElements.item(i).getAttributes().getNamedItem("var");
            Node delegationNode = vartagElements.item(i).getAttributes().getNamedItem("delegation");
            VarTagInfo varTagInfo = VarTagUtil.getVarTagInfo(delegationNode.getNodeValue());
            Integer status;
            if (varTagInfo != null) {
                status = varTagInfo.inputTag ? WRITE_ACCESS : READ_ACCESS;
            } else {
                status = DOUBTFUL;
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.