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:com.github.jennybrown8.wicketsourceopener.preferences.SecurePreferenceStore.java
License:GNU General Public License
@Override public boolean getBoolean(String name) { try {//from w w w . j a v a 2 s .c o m return securePreferences.getBoolean(name, IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT); } catch (StorageException e) { exceptionHandler.handle(e); } return IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT; }
From source file:com.github.jennybrown8.wicketsourceopener.preferences.SecurePreferenceStore.java
License:GNU General Public License
@Override public boolean getDefaultBoolean(String name) { if (defaultProperties.containsKey(name)) { Boolean value = Boolean.parseBoolean(defaultProperties.getProperty(name)); return value; } else {/* ww w. j av a 2 s . com*/ return IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT; } }
From source file:net.sf.eclipsensis.settings.NSISPreferences.java
License:Open Source License
@Override public void removeBoolean(String name) { mPreferenceStore.setValue(name, IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT); }
From source file:org.eclipse.babel.editor.preferences.FormattingPrefPage.java
License:Open Source License
/** * @see org.eclipse.jface.preference.PreferencePage#performDefaults() */// w w w . ja v a 2 s .c o m protected void performDefaults() { showGeneratedBy.setSelection(true); convertUnicodeToEncoded.setSelection(true); convertUnicodeToEncoded.setSelection(true); alignEqualSigns.setSelection(true); alignEqualSigns.setSelection(true); groupKeys.setSelection(true); groupLevelDeep.setText(Integer.toString(1)); groupLineBreaks.setText(Integer.toString(1)); groupAlignEqualSigns.setSelection(true); wrapLines.setSelection(true); wrapCharLimit.setText(Integer.toString(80)); wrapAlignEqualSigns.setSelection(true); wrapIndentSpaces.setText(Integer.toString(8)); wrapNewLine.setSelection(IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT); newLineTypeForce.setSelection(IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT); newLineTypes[Math.min(IPropertiesSerializerConfig.NEW_LINE_UNIX - 1, 0)].setSelection(true); keepEmptyFields.setSelection(false); sortKeys.setSelection(true); refreshEnabledStatuses(); super.performDefaults(); }
From source file:org.eclipse.babel.editor.preferences.MsgEditorPreferences.java
License:Open Source License
/** * Gets whether to support Eclipse NL directory structure. * @return <code>true</code> if supported *//*from w w w . jav a 2 s. c om*/ public static boolean getSupportNL() { return PREFS.getBoolean(SUPPORT_NL, IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT); }
From source file:org.eclipse.babel.editor.preferences.MsgEditorPreferences.java
License:Open Source License
/** * Gets whether lines should be wrapped if too big when generating file. * @return <code>true</code> if wrapped *//* ww w . ja va 2 s.c om*/ public static boolean getWrapLines() { return PREFS.getBoolean(WRAP_LINES, IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT); }
From source file:org.eclipse.babel.editor.preferences.MsgEditorPreferences.java
License:Open Source License
/** * Gets whether wrapped lines should be aligned with equal sign when * generating file.//from w w w . j a va 2s.com * @return <code>true</code> if aligned */ public static boolean getWrapAlignEqualSigns() { return PREFS.getBoolean(WRAP_ALIGN_EQUAL_SIGNS, IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT); }
From source file:org.eclipse.babel.editor.preferences.MsgEditorPreferences.java
License:Open Source License
/** * Gets whether we want to overwrite system (or Eclipse) default new line * type when generating file.//from w w w .j a v a 2 s . co m * @return <code>true</code> if overwriting */ public static boolean getForceNewLineType() { return PREFS.getBoolean(FORCE_NEW_LINE_TYPE, IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT); }
From source file:org.eclipse.babel.editor.preferences.MsgEditorPreferences.java
License:Open Source License
/** * Gets whether new lines are escaped or printed as is when generating file. * @return <code>true</code> if printed as is. *//* w w w .j a v a 2 s. c om*/ public static boolean getNewLineNice() { return PREFS.getBoolean(NEW_LINE_NICE, IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT); }
From source file:org.eclipse.babel.editor.preferences.MsgEditorPreferences.java
License:Open Source License
/** * Gets whether to report keys with similar values. * @return <code>true</code> if reporting *///from w w w.j av a 2s.c o m public static boolean getReportSimilarValues() { return PREFS.getBoolean(REPORT_SIM_VALUES, IPreferenceStore.BOOLEAN_DEFAULT_DEFAULT); }