protected boolean asBoolean(String string, boolean defaultValue) { if (string != null) { return StringConverter.asBoolean(string, defaultValue); } return defaultValue; }
private boolean asBoolean(String string, boolean defaultValue) { if (string != null) { return StringConverter.asBoolean(string, defaultValue); } return defaultValue; }
protected boolean asBoolean(String string, boolean defaultValue) { if (string != null) { return StringConverter.asBoolean(string, defaultValue); } return defaultValue; }
protected boolean asBoolean(String string, boolean defaultValue) { if (string != null) { return StringConverter.asBoolean(string, defaultValue); } return defaultValue; }
private boolean asBoolean(String string, boolean defaultValue) { if (string != null) { return StringConverter.asBoolean(string, defaultValue); } return defaultValue; }
/** * Converts the given value into a boolean. * Returns the given default value if the * value does not represent a boolean. * * @param value the value to be converted * @param dflt the default value * @return the value as a boolean, or the default value */ public static boolean asBoolean(String value, boolean dflt) { try { return asBoolean(value); } catch (DataFormatException e) { return dflt; } }
/** * Converts the given value into a boolean. * Returns the given default value if the * value does not represent a boolean. * * @param value the value to be converted * @param dflt the default value * @return the value as a boolean, or the default value */ public static boolean asBoolean(String value, boolean dflt) { try { return asBoolean(value); } catch (DataFormatException e) { return dflt; } }
/** * Converts the given value into a boolean. * Returns the given default value if the * value does not represent a boolean. * * @param value the value to be converted * @param dflt the default value * @return the value as a boolean, or the default value */ public static boolean asBoolean(String value, boolean dflt) { try { return asBoolean(value); } catch (DataFormatException e) { return dflt; } }
b= StringConverter.asBoolean(s, false); info.setTextPreferenceValue(b); b= StringConverter.asBoolean(s, false); info.setHighlightPreferenceValue(b); b= StringConverter.asBoolean(s, false); info.setOverviewRulerPreferenceValue(b); b= StringConverter.asBoolean(s, true); info.setVerticalRulerPreferenceValue(b); b= StringConverter.asBoolean(s, false); info.setContributesToHeader(b); b= StringConverter.asBoolean(s, false); info.setShowInNextPrevDropdownToolbarAction(b); b= StringConverter.asBoolean(s, false); info.setIsGoToNextNavigationTarget(b); b= StringConverter.asBoolean(s, false); info.setIsGoToPreviousNavigationTarget(b); info.setIncludeOnPreferencePage(s == null || StringConverter.asBoolean(s, true));
b= StringConverter.asBoolean(s, false); info.setTextPreferenceValue(b); b= StringConverter.asBoolean(s, false); info.setHighlightPreferenceValue(b); b= StringConverter.asBoolean(s, false); info.setOverviewRulerPreferenceValue(b); b= StringConverter.asBoolean(s, true); info.setVerticalRulerPreferenceValue(b); b= StringConverter.asBoolean(s, false); info.setContributesToHeader(b); b= StringConverter.asBoolean(s, false); info.setShowInNextPrevDropdownToolbarAction(b); b= StringConverter.asBoolean(s, false); info.setIsGoToNextNavigationTarget(b); b= StringConverter.asBoolean(s, false); info.setIsGoToPreviousNavigationTarget(b); info.setIncludeOnPreferencePage(s == null || StringConverter.asBoolean(s, true));