Package org.eclipse.wst.xml.core.internal.parser

Examples of org.eclipse.wst.xml.core.internal.parser.ContextRegionContainer


    // keep track of where we seem to be so that the endTagName can be checked
    boolean isInEndTag = false;
    boolean isInFirstTag = true;
    // create the embedded container and setup its "type"
    if (fEmbeddedContainer == null) {
      fEmbeddedContainer = new ContextRegionContainer();
      fEmbeddedContainer.setType(fEmbeddedHint);
      fEmbeddedContainer.setStart(containerStart);
      // TODO: parent region needs to be set .... but not sure where to get it from
      //    fEmbeddedContainer.setParent(parentRegion);
    }
View Full Code Here


    // keep track of where we seem to be so that the endTagName can be checked
    boolean isInEndTag = false;
    boolean isInFirstTag = true;
    // create the embedded container and setup its "type"
    if (fEmbeddedContainer == null) {
      fEmbeddedContainer = new ContextRegionContainer();
      fEmbeddedContainer.setType(fEmbeddedHint);
      fEmbeddedContainer.setStart(containerStart);
      // TODO: parent region needs to be set .... but not sure where to get it from
      //    fEmbeddedContainer.setParent(parentRegion);
    }
View Full Code Here

      if (!(firstRegion instanceof ContextRegion)) { // meaning
                              // "not-PHP-Resgion"
        ITextRegion regionAtCharacterOffset = structuredDocumentRegion
            .getRegionAtCharacterOffset(offset);
        if (regionAtCharacterOffset instanceof ContextRegionContainer) {
          ContextRegionContainer phpContext = (ContextRegionContainer) regionAtCharacterOffset;
          lastRegion = phpContext.getLastRegion();
          firstRegion = phpContext.getFirstRegion();
          xmlRelativeOffset = firstRegion.getLength();
        }

      }
      int absolutOffset = lastRegion.getStart()
View Full Code Here

      if (!(firstRegion instanceof ContextRegion)) { // meaning
                              // "not-PHP-Resgion"
        ITextRegion regionAtCharacterOffset = structuredDocumentRegion
            .getRegionAtCharacterOffset(offset);
        if (regionAtCharacterOffset instanceof ContextRegionContainer) {
          ContextRegionContainer phpContext = (ContextRegionContainer) regionAtCharacterOffset;
          lastRegion = phpContext.getLastRegion();
          firstRegion = phpContext.getFirstRegion();
          xmlRelativeOffset = firstRegion.getLength();
        }

      }
      int absolutOffset = lastRegion.getStart()
View Full Code Here

   *
   * @param textRegion
   * @return the PhpScript textRegion
   */
  private ITextRegion extractPhpScriptRegion(ITextRegion textRegion) {
    ContextRegionContainer container = (ContextRegionContainer) textRegion;
    ITextRegionList containerRegions = container.getRegions();
    for (int z = 0; z < containerRegions.size(); z++) {
      ITextRegion containerTextRegion = containerRegions.get(z);
      if (containerTextRegion instanceof PhpScriptRegion) {
        return containerTextRegion;
      }
View Full Code Here

    // keep track of where we seem to be so that the endTagName can be checked
    boolean isInEndTag = false;
    boolean isInFirstTag = true;
    // create the embedded container and setup its "type"
    if (fEmbeddedContainer == null) {
      fEmbeddedContainer = new ContextRegionContainer();
      fEmbeddedContainer.setType(fEmbeddedHint);
      fEmbeddedContainer.setStart(containerStart);
      // TODO: parent region needs to be set .... but not sure where to get it from
      //    fEmbeddedContainer.setParent(parentRegion);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.parser.ContextRegionContainer

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.