Package org.cfeclipse.cfml.editors.formatters

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


       */
      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);
      }
    };
    viewer.getTextWidget().addDisposeListener(new DisposeListener() {
      /*
 
View Full Code Here


   
    MultiPassContentFormatter formatter = new MultiPassContentFormatter(
        getConfiguredDocumentPartitioning(sourceViewer),
        IDocument.DEFAULT_CONTENT_TYPE);
   
    formatter.setMasterStrategy(new CFMLFormattingStrategy());
    if(formattingPreferences.formatSQL()) {     
      formatter.setSlaveStrategy(sqlStrategy, CFPartitionScanner.SQL);
    }
//    formatter.setSlaveStrategy(new XmlElementFormattingStrategy(), CFPartitionScanner.CF_SCRIPT);
    /*
 
View Full Code Here

TOP

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

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.