Examples of ITextRegion


Examples of org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion

    if (flatNode instanceof StructuredDocumentRegionProxy) {
      return flatNode.getText();
    }

    ITextRegion region = StructuredDocumentRegionUtil.getFirstRegion(flatNode);
    if (region != null) {
      String regionType = region.getType();
      if (regionType == DOMRegionContext.XML_ENTITY_REFERENCE || regionType == DOMRegionContext.XML_CHAR_REFERENCE) {
        String name = StructuredDocumentRegionUtil.getEntityRefName(flatNode, region);
        if (name != null) {
          DocumentImpl document = (DocumentImpl) getOwnerDocument();
          if (document != null) {
View Full Code Here

Examples of org.eclipse.xtext.util.ITextRegion

             
              for (ruleset r : root.getRuleset()) {
                for (selector s : r.getSelectors()) {
                  for (simple_selector ss : s.getSimpleselectors()) {
                    if (ss.getElement() != null) {
                      ITextRegion declarationRegion = locationInFileProvider.getFullTextRegion(ss.getElement());
                      addOccurrenceAnnotation(DECLARATION_ANNOTATION_TYPE, document, declarationRegion, m);
                    }
                  }
                }
              }
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.