Examples of CodeFormatterVisitor


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

  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
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.