Example usage for org.eclipse.jface.preference IPreferenceStore BOOLEAN_DEFAULT_DEFAULT

List of usage examples for org.eclipse.jface.preference IPreferenceStore BOOLEAN_DEFAULT_DEFAULT

Introduction

In this page you can find the example usage for org.eclipse.jface.preference IPreferenceStore BOOLEAN_DEFAULT_DEFAULT.

Prototype

boolean BOOLEAN_DEFAULT_DEFAULT

To view the source code for org.eclipse.jface.preference IPreferenceStore BOOLEAN_DEFAULT_DEFAULT.

Click Source Link

Document

The default-default value for boolean preferences (false).

Usage

From source file:org.eclipse.babel.editor.preferences.MsgEditorPreferences.java

License:Open Source License

/**
 * Gets whether to use the Levensthein method when reporting similar
 * values.//  w w w .  ja v  a 2  s  .c  om
 * @return <code>true</code> if using Levensthein method
 */
public static boolean getReportSimilarValuesLevensthein() {
    return PREFS.getBoolean(REPORT_SIM_VALUES_LEVENSTHEIN, IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT);
}

From source file:org.eclipse.babel.editor.preferences.ReportingPrefPage.java

License:Open Source License

/**
 * @see org.eclipse.jface.preference.PreferencePage#performDefaults()
 *//*  w  ww. j a v a 2  s .  co  m*/
protected void performDefaults() {
    reportMissingVals.select(MsgEditorPreferences.VALIDATION_MESSAGE_ERROR);
    reportDuplVals.select(MsgEditorPreferences.VALIDATION_MESSAGE_WARNING);
    reportSimVals.select(IPreferenceStore.INT_DEFAULT_DEFAULT);
    reportSimValsMode[0].setSelection(true);
    reportSimValsMode[1].setSelection(IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT);
    reportSimPrecision.setText(Double.toString(0.75d));
    refreshEnabledStatuses();
    super.performDefaults();
}