Package tk.eclipse.plugin.htmleditor.assist

Examples of tk.eclipse.plugin.htmleditor.assist.AttributeInfo


    _editorPart = editorPart;
    _cache = wodParserCache;
    _tagList = new ArrayList<TagInfo>(TagDefinition.getTagInfoAsList());

    TagInfo webobject = new TagInfo("webobject", true);
    webobject.addAttributeInfo(new AttributeInfo("name", true, AttributeInfo.NONE, true));
    _tagList.add(webobject);

    TagInfo wo = new TagInfo("wo", true);
    wo.addAttributeInfo(new AttributeInfo("name", true, AttributeInfo.NONE, true));
    _tagList.add(wo);

    //    // JSP directives
    //    _tagList.add(new TextInfo("<%  %>", 3));
    //    _tagList.add(new TextInfo("<%=  %>", 4));
View Full Code Here


        } else if(elementName.equals("bodycontent") || elementName.equals("body-content")){
          hasBody = !getChildText(element).equals("empty");
        } else if(elementName.equals("description")){
          description = wrap(getChildText(element));
        } else if(elementName.equals("attribute")){
          AttributeInfo attrInfo = parseAttributeElement(element);
          attributes.add(attrInfo);
        }
      }
    }
   
View Full Code Here

          }
        }
      }
    }
   
    AttributeInfo attrInfo = new AttributeInfo(name, true, AttributeInfo.NONE, required);
    attrInfo.setDescription(description);
    return attrInfo;
  }
View Full Code Here

  private IFile _file = null;

  public JSPAssistProcessor() {
    // JSP actions
    TagInfo useBean = new TagInfo("jsp:useBean", true);
    useBean.addAttributeInfo(new AttributeInfo("id", true));
    useBean.addAttributeInfo(new AttributeInfo("scope", true, SCOPE));
    useBean.addAttributeInfo(new AttributeInfo("class", true, CLASS));
    _tagList.add(useBean);

    TagInfo setProperty = new TagInfo("jsp:setProperty", false);
    setProperty.addAttributeInfo(new AttributeInfo("name", true));
    setProperty.addAttributeInfo(new AttributeInfo("param", true));
    setProperty.addAttributeInfo(new AttributeInfo("property", true));
    _tagList.add(setProperty);

    TagInfo include = new TagInfo("jsp:include", false);
    include.addAttributeInfo(new AttributeInfo("page", true));
    _tagList.add(include);

    TagInfo forward = new TagInfo("jsp:forward", true);
    forward.addAttributeInfo(new AttributeInfo("page", true));
    _tagList.add(forward);

    TagInfo param = new TagInfo("jsp:param", false);
    param.addAttributeInfo(new AttributeInfo("name", true));
    param.addAttributeInfo(new AttributeInfo("value", true));
    _tagList.add(param);

    TagInfo attribute = new TagInfo("jsp:attribute", true);
    attribute.addAttributeInfo(new AttributeInfo("name", true));
    _tagList.add(attribute);

    TagInfo body = new TagInfo("jsp:body", true);
    _tagList.add(body);

    TagInfo element = new TagInfo("jsp:element", true);
    element.addAttributeInfo(new AttributeInfo("name", true));
    _tagList.add(element);

    TagInfo text = new TagInfo("jsp:text", true);
    _tagList.add(text);
View Full Code Here

    while (matcher.find()) {
      String content = matcher.group(1);
      String name = getAttribute(content, NAME);
      boolean required = getBooleanValue(getAttribute(content, REQUIRED));
     
      tag.addAttributeInfo(new AttributeInfo(name, true, AttributeInfo.NONE, required));
    }
   
    return tag;
  }
View Full Code Here

        elementType = BindingReflectionUtils.findElementType(_javaProject, getExpandedElementTypeName(), false, _cache);
        if (elementType != null) {
          Set<WodCompletionProposal> proposals = new HashSet<WodCompletionProposal>();
          WodCompletionUtils.fillInBindingNameCompletionProposals(_javaProject, elementType, "", 0, 0, proposals, false, _cache);
          for (WodCompletionProposal proposal : proposals) {
            AttributeInfo attrInfo = new AttributeInfo(proposal.getProposal(), true);
            addAttributeInfo(attrInfo);
          }
        }
        _attributeInfoCached = true;
      }
View Full Code Here

TOP

Related Classes of tk.eclipse.plugin.htmleditor.assist.AttributeInfo

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.