Examples of ForeignRegion


Examples of org.eclipse.wst.sse.core.internal.parser.ForeignRegion

    // subclass
    // if (context == XMLJSPRegionContexts.JSP_CONTENT) {
    // newRegion = new JSPCodeRegion(context, start, textLength, length);
    // } else
    if (context == DOMRegionContext.BLOCK_TEXT) {
      newRegion = new ForeignRegion(context, start, textLength, length);
      ((ForeignRegion) newRegion).setSurroundingTag(surroundingTag);
    }
    else {
      newRegion = new ContextRegion(context, start, textLength, length);
    }
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.parser.ForeignRegion

  }

  public ITextRegion createToken(String context, int start, int textLength, int length, String lang, String surroundingTag) {
    ITextRegion newRegion = null;
    if (context == DOMJSPRegionContexts.JSP_CONTENT) {
      newRegion = new ForeignRegion(context, start, textLength, length);
    }
    else
      newRegion = super.createToken(context, start, textLength, length, lang, surroundingTag);
    return newRegion;
  }
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.parser.ForeignRegion

            return;
          }
          ITextRegion textRegion = sdRegion
              .getRegionAtCharacterOffset(selectionOffset);
          if (textRegion instanceof ForeignRegion) {
            ForeignRegion foreignRegion = (ForeignRegion) textRegion;
            isJavaScriptRegion = "script" //$NON-NLS-1$
            .equalsIgnoreCase(foreignRegion.getSurroundingTag());
          }

          // Check if the containing project has JS nature or not
          if (fTextEditor instanceof PHPStructuredEditor) {
            PHPStructuredEditor phpEditor = (PHPStructuredEditor) fTextEditor;
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.