Examples of FuzzyXMLText


Examples of jp.aonir.fuzzyxml.FuzzyXMLText

 
  protected Image getNodeImage(FuzzyXMLNode element){
    if(element instanceof FuzzyXMLElement){
      return super.getNodeImage(element);
    } else if(element instanceof FuzzyXMLText){
      FuzzyXMLText t = (FuzzyXMLText)element;
      if(t.getValue().startsWith("<%--")){
        return HTMLPlugin.getDefault().getImageRegistry().get(HTMLPlugin.ICON_COMMENT);
      }
      return HTMLPlugin.getDefault().getImageRegistry().get(HTMLPlugin.ICON_TAG);
    }
    return super.getNodeImage(element);
View Full Code Here

Examples of jp.aonir.fuzzyxml.FuzzyXMLText

  @Override
  protected Image getNodeImage(FuzzyXMLNode element){
    if(element instanceof FuzzyXMLElement){
      return super.getNodeImage(element);
    } else if(element instanceof FuzzyXMLText){
      FuzzyXMLText t = (FuzzyXMLText)element;
      if(t.getValue().startsWith("<%--")){
        return HTMLPlugin.getDefault().getImageRegistry().get(HTMLPlugin.ICON_COMMENT);
      }
      return HTMLPlugin.getDefault().getImageRegistry().get(HTMLPlugin.ICON_TAG);
    }
    return super.getNodeImage(element);
View Full Code Here

Examples of jp.aonir.fuzzyxml.FuzzyXMLText

    boolean empty = !hasChildren();
    if (!empty) {
      empty = true;
      for (FuzzyXMLNode child : _children) {
        if (child instanceof FuzzyXMLText) {
          FuzzyXMLText text = (FuzzyXMLText) child;
          String textValue = text.getValue();
          if (textValue != null && textValue.trim().length() > 0) {
            empty = false;
            break;
          }
        }
View Full Code Here

Examples of jp.aonir.fuzzyxml.FuzzyXMLText

    int textblocks = 0;
    int elementcount = 0;
    for (int i = 0; i < children.length; i++) {
      FuzzyXMLNode child = children[i];
      if (child instanceof FuzzyXMLText) {
        FuzzyXMLText text = (FuzzyXMLText)child;
        if (!text.isHidden()) {
          //result = text.isNonBreaking();
          textblocks++;
          if (text.hasLineBreaks())
            textblocks++;
        }
      } else {
        if (child instanceof FuzzyXMLElement) {
          FuzzyXMLElement element = (FuzzyXMLElement)child;
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.