Examples of WodElementProblem


Examples of org.objectstyle.wolips.bindings.wod.WodElementProblem

    Position position = rulePosition.getPosition();
    try {
      int lineNumber = _document.getLineOfOffset(position.getOffset());
      WodProblem problem;
      if (element != null) {
        problem = new WodElementProblem(element, message, position, lineNumber, warning);
      }
      else {
        problem = new WodProblem(message, position, lineNumber, warning);
      }
      addParseProblem(problem);
View Full Code Here

Examples of org.objectstyle.wolips.bindings.wod.WodElementProblem

              if (element != null) {
                List<HtmlElementName> htmlElementNames = htmlElementCache.getHtmlElementNames(element.getElementName());
                if (htmlElementNames != null) {
                  for (HtmlElementName htmlElementName : htmlElementNames) {
                    int lineNumber = WodHtmlUtils.getLineAtOffset(cache.getHtmlEntry().getContents(), htmlElementName.getStartOffset());
                    WodElementProblem htmlProblem = new WodElementProblem(element, "In the WOD, " + wodProblem.getMessage(), new Position(htmlElementName.getStartOffset(), htmlElementName.getEndOffset() - htmlElementName.getStartOffset() + 1), lineNumber, wodProblem.isWarning() || PreferenceConstants.WARNING.equals(wodErrorsInHtmlSeverity));
                    WodModelUtils.createMarker(htmlFile, htmlProblem);
                  }
                }
              }
            }
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.