Package org.eclipse.php.formatter.core

Examples of org.eclipse.php.formatter.core.CodeFormatterVisitor$CommentIndentationObject


  protected void doFormatPreview() {
    fText.setRedraw(false);
    try {
      fPreviewDocument.set(fOriInput);
      IRegion region = new Region(0, fPreviewDocument.getLength());
      CodeFormatterVisitor codeFormatter = new CodeFormatterVisitor(
          fPreviewDocument, codeFormatterPreferences,
          System.getProperty(Platform.PREF_LINE_SEPARATOR),
          PHPVersion.PHP5_5, true, region);
      List<?> changes = codeFormatter.getChanges();
      fInput = applyChanges(fOriInput, changes);

      setText(fInput);
    } catch (Exception e) {
      Logger.logException(e);
View Full Code Here

TOP

Related Classes of org.eclipse.php.formatter.core.CodeFormatterVisitor$CommentIndentationObject

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.