Package org.eclipse.php.internal.core.documentModel.parser

Examples of org.eclipse.php.internal.core.documentModel.parser.PhpSourceParser


          this.fViewer.setError(fLeg, ex.getMessage());
        }

        //        newDoc= new Document(s != null ? s : ""); //$NON-NLS-1$
        newDoc = StructuredDocumentFactory
            .getNewStructuredDocumentInstance(new PhpSourceParser());
        newDoc.set(s != null ? s : ""); //$NON-NLS-1$
        // newDoc= new Document(s != null ? s : ""); //$NON-NLS-1$
        IDocumentPartitioner partitioner = getDocumentPartitioner();
        if (partitioner != null) {
          if (newDoc instanceof JobSafeStructuredDocument) {
View Full Code Here


      }
    } catch (BadLocationException e) {
      PHPUiPlugin.log(e);
    }
    JobSafeStructuredDocument newdocument = new JobSafeStructuredDocument(
        new PhpSourceParser());
    String start = "<?php"; //$NON-NLS-1$
    newdocument.set(start + newline + tempsb.toString());
    PhpFormatter formatter = new PhpFormatter(0, newdocument.getLength(),
        true, indentationObject);
    formatter.format(newdocument.getFirstStructuredDocumentRegion());
View Full Code Here

    // doc.setPreferredLineDelimiter( "\n" );
    return doc;
  }

  public RegionParser getParser() {
    PhpSourceParser parser = new PhpSourceParser();
    // for the "static HTML" case, we need to initialize
    // Blocktags here.
    addHTMLishTag(parser, "script"); //$NON-NLS-1$
    addHTMLishTag(parser, "style"); //$NON-NLS-1$
    return parser;
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.documentModel.parser.PhpSourceParser

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.