Code example for Preferences

Methods: getFloat

0
 
	public float getFloat(String key, float def) {
		if (hasModifier(key, MODIFIER_NULL)) {
			return def;
		} 
		return jPrefs.getFloat(key, def);
	} 
 
	/* 
	 * (non-Javadoc) 
	 *  
	 * @see 
	 * org.eclipse.jface.preference.IPreferenceStore#getInt(java.lang.String) 
	 */ 
	public int getInt(String name) {
		return getInt(name, 0);
	} 
 
	public int getInt(String key, int def) {
		if (hasModifier(key, MODIFIER_NULL)) {
			return def;