Search in sources :

Example 1 with CleanupProcessorCSS

use of org.eclipse.wst.css.core.internal.cleanup.CleanupProcessorCSS in project webtools.sourceediting by eclipse.

the class TestCleanupProcessorCSS method setUp.

protected void setUp() throws Exception {
    // set up preferences
    Preferences prefs = CSSCorePlugin.getDefault().getPluginPreferences();
    fOldClearBlankLinesPref = prefs.getBoolean(CSSCorePreferenceNames.CLEAR_ALL_BLANK_LINES);
    fOldMaxLineWidthPref = prefs.getInt(CSSCorePreferenceNames.LINE_WIDTH);
    fOldIndentationCharPref = prefs.getString(CSSCorePreferenceNames.INDENTATION_CHAR);
    fOldIndentationSizePref = prefs.getInt(CSSCorePreferenceNames.INDENTATION_SIZE);
    prefs.setValue(CSSCorePreferenceNames.CLEAR_ALL_BLANK_LINES, false);
    prefs.setValue(CSSCorePreferenceNames.LINE_WIDTH, 72);
    prefs.setValue(CSSCorePreferenceNames.INDENTATION_CHAR, CSSCorePreferenceNames.TAB);
    prefs.setValue(CSSCorePreferenceNames.INDENTATION_SIZE, 1);
    fCleanupProcessor = new CleanupProcessorCSS();
    fStringCompareUtil = new StringCompareUtil();
}
Also used : StringCompareUtil(org.eclipse.wst.css.core.tests.util.StringCompareUtil) CleanupProcessorCSS(org.eclipse.wst.css.core.internal.cleanup.CleanupProcessorCSS) Preferences(org.eclipse.core.runtime.Preferences)

Aggregations

Preferences (org.eclipse.core.runtime.Preferences)1 CleanupProcessorCSS (org.eclipse.wst.css.core.internal.cleanup.CleanupProcessorCSS)1 StringCompareUtil (org.eclipse.wst.css.core.tests.util.StringCompareUtil)1