Package org.python.pydev.core

Examples of org.python.pydev.core.IIndentPrefs


      // see com.python.pydev.analysis.builder.AnalysisBuilderRunnable.doAnalysis
      IAnalysisPreferences analysisPreferences =
        AnalysisPreferences.getAnalysisPreferences();
      analysisPreferences.clearCaches();
      IIndentPrefs indentPrefs = DefaultIndentPrefs.get();
      indentPrefs.regenerateIndentString(); // TAB_INDENT pref may have changd.
      OccurrencesAnalyzer analyzer = new OccurrencesAnalyzer();
      IMessage[] messages = analyzer.analyzeDocument(
        nature, module, analysisPreferences, document,
        new NullProgressMonitor(), indentPrefs);
View Full Code Here


        return createSourceFromAST(root, false, new AdapterPrefs(endLineDelim, versionProvider));
    }

    public static String createSourceFromAST(SimpleNode root, boolean ignoreComments, AdapterPrefs adapterPrefs) {
        IGrammarVersionProvider versionProvider = adapterPrefs.versionProvider;
        IIndentPrefs indentPrefs = DefaultIndentPrefs.get();
        String endLineDelim = adapterPrefs.endLineDelim;

        PrettyPrinterPrefsV2 prettyPrinterPrefs = PrettyPrinterV2.createDefaultPrefs(versionProvider, indentPrefs,
                endLineDelim);
View Full Code Here

TOP

Related Classes of org.python.pydev.core.IIndentPrefs

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.