List of usage examples for org.eclipse.jface.preference IPreferenceStore BOOLEAN_DEFAULT_DEFAULT
boolean BOOLEAN_DEFAULT_DEFAULT
To view the source code for org.eclipse.jface.preference IPreferenceStore BOOLEAN_DEFAULT_DEFAULT.
Click Source Link
false
). 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(); }