Package org.eclipse.wst.sse.core.internal.ltk.parser

Examples of org.eclipse.wst.sse.core.internal.ltk.parser.RegionParser


    if (model == null)
      return false; // error
    IStructuredDocument structuredDocument = model.getStructuredDocument();
    if (structuredDocument == null || fTagName == null)
      return false; // eror
    RegionParser parser = structuredDocument.getParser();
    if (parser == null || !(parser instanceof XMLSourceParser))
      return false;
    return (((XMLSourceParser) parser).getBlockMarker(new String(this.fTagName)) != null);
    /*
     * CMElementDeclaration decl = getDeclaration(); if (decl == null)
View Full Code Here


  }

  private void clearTaglibInfo() {
    if (Debug.debugTaglibs)
      System.out.println("clearing taglib info"); //$NON-NLS-1$
    RegionParser parser = fStructuredDocument.getParser();
    if (parser instanceof StructuredDocumentRegionParser)
      ((StructuredDocumentRegionParser) parser).resetHandlers();
  }
View Full Code Here

     
      IStructuredDocument structuredDocument = model.getStructuredDocument();
      if (structuredDocument == null)
        return null;

      RegionParser parser = structuredDocument.getParser();
      if (parser instanceof CSSSourceParser) {
        ((CSSSourceParser)parser).setParserMode(CSSSourceParser.MODE_DECLARATION);
      } else {
        return null;
      }
View Full Code Here

     * exists at [1]
     */
    ITextRegion tagNameRegion = sdRegion.getRegions().get(1);
    String tagName = sdRegion.getText(tagNameRegion);

    RegionParser parser = fStructuredDocument.getParser();
    if (parser instanceof JSPSourceParser) {
      if (tagName.equals(fLastCheckedPrefix))
        return true;
      List fCustomActionPrefixes = ((JSPSourceParser) parser).getNestablePrefixes();
      for (int i = 0; i < fCustomActionPrefixes.size(); i++)
View Full Code Here

    if (model == null)
      return false; // error
    IStructuredDocument structuredDocument = model.getStructuredDocument();
    if (structuredDocument == null || fTagName == null)
      return false; // eror
    RegionParser parser = structuredDocument.getParser();
    if (parser == null || !(parser instanceof XMLSourceParser))
      return false;
    return (((XMLSourceParser) parser).getBlockMarker(new String(this.fTagName)) != null);
    /*
     * CMElementDeclaration decl = getDeclaration(); if (decl == null)
View Full Code Here

     
      IStructuredDocument structuredDocument = model.getStructuredDocument();
      if (structuredDocument == null)
        return null;

      RegionParser parser = structuredDocument.getParser();
      if (parser instanceof CSSSourceParser) {
        ((CSSSourceParser)parser).setParserMode(CSSSourceParser.MODE_DECLARATION);
      } else {
        return null;
      }
View Full Code Here

  }

  private void clearTaglibInfo() {
    if (Debug.debugTaglibs)
      System.out.println("clearing taglib info"); //$NON-NLS-1$
    RegionParser parser = fStructuredDocument.getParser();
    if (parser instanceof StructuredDocumentRegionParser)
      ((StructuredDocumentRegionParser) parser).resetHandlers();
  }
View Full Code Here

     * exists at [1]
     */
    ITextRegion tagNameRegion = sdRegion.getRegions().get(1);
    String tagName = sdRegion.getText(tagNameRegion);

    RegionParser parser = fStructuredDocument.getParser();
    if (parser instanceof JSPSourceParser) {
      if (tagName.equals(fLastCheckedPrefix))
        return true;
      List fCustomActionPrefixes = ((JSPSourceParser) parser).getNestablePrefixes();
      for (int i = 0; i < fCustomActionPrefixes.size(); i++)
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.core.internal.ltk.parser.RegionParser

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.