Search in sources :

Example 1 with StringCompareUtil

use of org.eclipse.wst.css.core.tests.util.StringCompareUtil in project webtools.sourceediting by eclipse.

the class TestFormatProcessorCSS 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);
    formatProcessor = new FormatProcessorCSS();
    fStringCompareUtil = new StringCompareUtil();
}
Also used : StringCompareUtil(org.eclipse.wst.css.core.tests.util.StringCompareUtil) FormatProcessorCSS(org.eclipse.wst.css.core.internal.format.FormatProcessorCSS) Preferences(org.eclipse.core.runtime.Preferences)

Example 2 with StringCompareUtil

use of org.eclipse.wst.css.core.tests.util.StringCompareUtil 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)2 StringCompareUtil (org.eclipse.wst.css.core.tests.util.StringCompareUtil)2 CleanupProcessorCSS (org.eclipse.wst.css.core.internal.cleanup.CleanupProcessorCSS)1 FormatProcessorCSS (org.eclipse.wst.css.core.internal.format.FormatProcessorCSS)1