Examples of adjustStart()


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

        if (currentNode != null && currentNode.getLastRegion().getType() == DOMRegionContext.BLOCK_TEXT) {
          // multiple block texts indicated embedded containers; no
          // new IStructuredDocumentRegion
          currentNode.addRegion(region);
          currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
          region.adjustStart(-currentNode.getStart());
          // DW 4/16/2003 regions no longer have parents
          // region.setParent(currentNode);
        }
        else {
          // not continuing a IStructuredDocumentRegion
View Full Code Here

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

          }
          currentNode.setPrevious(lastNode);
          currentNode.setStart(region.getStart());
          currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
          currentNode.setEnded(true);
          region.adjustStart(-currentNode.getStart());
          currentNode.addRegion(region);
          // DW 4/16/2003 regions no longer have parents
          // region.setParent(currentNode);
        }
      }
View Full Code Here

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

        }
        currentNode.setPrevious(lastNode);
        currentNode.setStart(region.getStart());
        currentNode.addRegion(region);
        currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
        region.adjustStart(-currentNode.getStart());
        // DW 4/16/2003 regions no longer have parents
        // region.setParent(currentNode);
      }
      // the following contexts neither open nor close
      // StructuredDocumentRegions; just add to them
View Full Code Here

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

      // the following contexts neither open nor close
      // StructuredDocumentRegions; just add to them
      else if ((type == DOMRegionContext.XML_TAG_NAME) || (type == DOMRegionContext.XML_TAG_ATTRIBUTE_NAME) || (type == DOMRegionContext.XML_TAG_ATTRIBUTE_EQUALS) || (type == DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE) || (type == DOMRegionContext.XML_COMMENT_TEXT) || (type == DOMRegionContext.XML_PI_CONTENT) || (type == DOMRegionContext.XML_DOCTYPE_INTERNAL_SUBSET)) {
        currentNode.addRegion(region);
        currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
        region.adjustStart(-currentNode.getStart());
        // DW 4/16/2003 regions no longer have parents
        // region.setParent(currentNode);
      }
      // the following contexts close off StructuredDocumentRegions
      // cleanly
View Full Code Here

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

      // cleanly
      else if ((type == DOMRegionContext.XML_PI_CLOSE) || (type == DOMRegionContext.XML_TAG_CLOSE) || (type == DOMRegionContext.XML_EMPTY_TAG_CLOSE) || (type == DOMRegionContext.XML_COMMENT_CLOSE) || (type == DOMRegionContext.XML_DECLARATION_CLOSE) || (type == DOMRegionContext.XML_CDATA_CLOSE)) {
        currentNode.setEnded(true);
        currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
        currentNode.addRegion(region);
        region.adjustStart(-currentNode.getStart());
        // DW 4/16/2003 regions no longer have parents
        // region.setParent(currentNode);
      }
      // this is extremely rare, but valid
      else if (type == DOMRegionContext.WHITE_SPACE) {
View Full Code Here

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

        if (currentNode != null && currentNode.getLastRegion().getType() == DOMRegionContext.BLOCK_TEXT) {
          // multiple block texts indicated embedded containers; no
          // new IStructuredDocumentRegion
          currentNode.addRegion(region);
          currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
          region.adjustStart(-currentNode.getStart());
          // DW, 4/16/2003 token regions no longer have parents
          // region.setParent(currentNode);
          if (region instanceof ITextRegionContainer) {
            ((ITextRegionContainer) region).setParent(currentNode);
          }
View Full Code Here

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

          }
          currentNode.setPrevious(lastNode);
          currentNode.setStart(region.getStart());
          currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
          currentNode.setEnded(true);
          region.adjustStart(-currentNode.getStart());
          currentNode.addRegion(region);
          // DW, 4/16/2003 token regions no longer have parents
          // region.setParent(currentNode);
          if (region instanceof ITextRegionContainer) {
            ((ITextRegionContainer) region).setParent(currentNode);
View Full Code Here

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

        }
        currentNode.setPrevious(lastNode);
        currentNode.setStart(region.getStart());
        currentNode.addRegion(region);
        currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
        region.adjustStart(-currentNode.getStart());
        // DW, 4/16/2003 token regions no longer have parents
        // region.setParent(currentNode);
        if (region instanceof ITextRegionContainer) {
          ((ITextRegionContainer) region).setParent(currentNode);
        }
View Full Code Here

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

      // the following contexts NEITHER open nor close
      // StructuredDocumentRegions; just add to them
      else if ((type == DOMRegionContext.XML_TAG_NAME) || (type == DOMRegionContext.XML_TAG_ATTRIBUTE_NAME) || (type == DOMRegionContext.XML_TAG_ATTRIBUTE_EQUALS) || (type == DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE) || (type == DOMRegionContext.XML_COMMENT_TEXT) || (type == DOMRegionContext.XML_PI_CONTENT) || (type == DOMRegionContext.XML_DOCTYPE_INTERNAL_SUBSET) || (type == DOMJSPRegionContexts.JSP_COMMENT_TEXT) || (type == DOMJSPRegionContexts.JSP_ROOT_TAG_NAME) || (type == DOMJSPRegionContexts.JSP_DIRECTIVE_NAME) || type == DOMJSPRegionContexts.JSP_EL_CONTENT) {
        currentNode.addRegion(region);
        currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
        region.adjustStart(-currentNode.getStart());
        // DW, 4/16/2003 token regions no longer have parents
        // region.setParent(currentNode);
        if (region instanceof ITextRegionContainer) {
          ((ITextRegionContainer) region).setParent(currentNode);
        }
View Full Code Here

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

      // cleanly
      else if ((type == DOMRegionContext.XML_PI_CLOSE) || (type == DOMRegionContext.XML_TAG_CLOSE) || (type == DOMRegionContext.XML_EMPTY_TAG_CLOSE) || (type == DOMRegionContext.XML_COMMENT_CLOSE) || (type == DOMRegionContext.XML_CDATA_CLOSE) || (type == DOMJSPRegionContexts.JSP_CLOSE) || (type == DOMJSPRegionContexts.JSP_COMMENT_CLOSE) || (type == DOMJSPRegionContexts.JSP_DIRECTIVE_CLOSE) || (type == DOMRegionContext.XML_DECLARATION_CLOSE) || type == DOMJSPRegionContexts.JSP_EL_CLOSE) {
        currentNode.setEnded(true);
        currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
        currentNode.addRegion(region);
        region.adjustStart(-currentNode.getStart());
        // DW, 4/16/2003 token regions no longer have parents
        // region.setParent(currentNode);
        if (region instanceof ITextRegionContainer) {
          ((ITextRegionContainer) region).setParent(currentNode);
        }
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.