Package org.cfeclipse.cfml.editors.formatters

Examples of org.cfeclipse.cfml.editors.formatters.FormattingPreferences


       * @param viewer
       * @param preferenceStore
       */
      private void format(final SourceViewer sourceViewer, final IPreferenceStore store) {
        String contents= loadPreviewContentFromFile("FormatPreviewCode.txt");
        FormattingPreferences prefs= new FormattingPreferences();
        prefs.setPreferenceStore(store);
        CFMLFormattingStrategy formatter = new CFMLFormattingStrategy();
        contents = formatter.format(contents, prefs, "", false);
        viewer.getDocument().set(contents);
      }
    };
View Full Code Here


   
    return fPreviewViewer.getControl();
  }

  private String formatContent(String content, IPreferenceStore preferenceStore) {
    FormattingPreferences prefs= new FormattingPreferences();
    prefs.setPreferenceStore(preferenceStore);
    return CFMLFormatter.format(content, prefs);
  }
View Full Code Here

TOP

Related Classes of org.cfeclipse.cfml.editors.formatters.FormattingPreferences

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.