@Override public double getDouble(String name) { return fStore.getDouble(name); }
@Override public double getDouble(String name) { return fStore.getDouble(name); }
@Override public double getDouble(String name) { return fStore.getDouble(name); }
@Override public double getDouble(String name) { return fStore.getDouble(name); }
@Override public double getDouble(String name) { return fStore.getDouble(name); }
public double getDouble(String name) { return fStore.getDouble(name); }
public double getDouble(String name) { return fStore.getDouble(name); }
public double getDouble(String name) { return fStore.getDouble(name); }
public double getDouble(String name) { return delegate.getDouble(name); }
public double getDouble(String name) { IPreferenceStore visibleStore= getVisibleStore(name); if (visibleStore != null) return visibleStore.getDouble(name); return DOUBLE_DEFAULT_DEFAULT; }
@Override public double getDouble(String name) { IPreferenceStore visibleStore= getVisibleStore(name); if (visibleStore != null) return visibleStore.getDouble(name); return DOUBLE_DEFAULT_DEFAULT; }
@Override public Object getValue(String propertyId, Class propertyType) { if (propertyType.isAssignableFrom(String.class)) { return store.getString(propertyId); } if (propertyType == Boolean.class) { return store.getBoolean(propertyId) ? Boolean.TRUE : Boolean.FALSE; } if (propertyType == Double.class) { return Double.valueOf(store.getDouble(propertyId)); } if (propertyType == Float.class) { return Float.valueOf(store.getFloat(propertyId)); } if (propertyType == Integer.class) { return Integer.valueOf(store.getInt(propertyId)); } if (propertyType == Long.class) { return Long.valueOf(store.getLong(propertyId)); } return null; }
/** * Returns an object of the same dynamic type as <code>thisValue</code>, the returned object * encapsulates the value of the <code>property</code> from the preference <code>store</code>. * * @param property the name of the considered property * @param store the preference store * @param thisValue the given value * @return the other value */ private Object getOtherValue(String property, IPreferenceStore store, Object thisValue) { if (thisValue instanceof Boolean) return store.getBoolean(property) ? Boolean.TRUE : Boolean.FALSE; else if (thisValue instanceof Double) return new Double(store.getDouble(property)); else if (thisValue instanceof Float) return new Float(store.getFloat(property)); else if (thisValue instanceof Integer) return new Integer(store.getInt(property)); else if (thisValue instanceof Long) return new Long(store.getLong(property)); else if (thisValue instanceof String) return store.getString(property); return store.getString(property); }
/** * Returns an object of the same dynamic type as <code>thisValue</code>, the returned object * encapsulates the value of the <code>property</code> from the preference <code>store</code>. * * @param property the name of the considered property * @param store the preference store * @param thisValue the given value * @return the other value */ private Object getOtherValue(String property, IPreferenceStore store, Object thisValue) { if (thisValue instanceof Boolean) return store.getBoolean(property) ? Boolean.TRUE : Boolean.FALSE; else if (thisValue instanceof Double) return new Double(store.getDouble(property)); else if (thisValue instanceof Float) return new Float(store.getFloat(property)); else if (thisValue instanceof Integer) return new Integer(store.getInt(property)); else if (thisValue instanceof Long) return new Long(store.getLong(property)); else if (thisValue instanceof String) return store.getString(property); return store.getString(property); }
@Override public void storeToMap(IPreferenceStore store, Map<Object, Object> map, boolean useDefault) { final String[] preferences= getPreferenceKeys(); String preference= null; for (String pref : preferences) { preference= pref; if (isBooleanPreference(preference)) { map.put(preference, (useDefault ? store.getDefaultBoolean(preference) : store.getBoolean(preference)) ? IPreferenceStore.TRUE : IPreferenceStore.FALSE); } else if (isIntegerPreference(preference)) { map.put(preference, String.valueOf(useDefault ? store.getDefaultInt(preference) : store.getInt(preference))); } else if (isStringPreference(preference)) { map.put(preference, useDefault ? store.getDefaultString(preference) : store.getString(preference)); } else if (isDoublePreference(preference)) { map.put(preference, String.valueOf(useDefault ? store.getDefaultDouble(preference) : store.getDouble(preference))); } else if (isFloatPreference(preference)) { map.put(preference, String.valueOf(useDefault ? store.getDefaultFloat(preference) : store.getFloat(preference))); } else if (isLongPreference(preference)) { map.put(preference, String.valueOf(useDefault ? store.getDefaultLong(preference) : store.getLong(preference))); } } } }
@Override public void storeToMap(IPreferenceStore store, Map<Object, Object> map, boolean useDefault) { final String[] preferences= getPreferenceKeys(); String preference= null; for (int index= 0; index < preferences.length; index++) { preference= preferences[index]; if (isBooleanPreference(preference)) { map.put(preference, (useDefault ? store.getDefaultBoolean(preference) : store.getBoolean(preference)) ? IPreferenceStore.TRUE : IPreferenceStore.FALSE); } else if (isIntegerPreference(preference)) { map.put(preference, String.valueOf(useDefault ? store.getDefaultInt(preference) : store.getInt(preference))); } else if (isStringPreference(preference)) { map.put(preference, useDefault ? store.getDefaultString(preference) : store.getString(preference)); } else if (isDoublePreference(preference)) { map.put(preference, String.valueOf(useDefault ? store.getDefaultDouble(preference) : store.getDouble(preference))); } else if (isFloatPreference(preference)) { map.put(preference, String.valueOf(useDefault ? store.getDefaultFloat(preference) : store.getFloat(preference))); } else if (isLongPreference(preference)) { map.put(preference, String.valueOf(useDefault ? store.getDefaultLong(preference) : store.getLong(preference))); } } } }
target.setValue(key.fKey, orgin.getDouble(key.fKey)); target.setDefault(key.fKey, orgin.getDefaultDouble(key.fKey));
target.setValue(key.fKey, orgin.getDouble(key.fKey)); target.setDefault(key.fKey, orgin.getDefaultDouble(key.fKey));
target.setValue(key.fKey, orgin.getDouble(key.fKey)); target.setDefault(key.fKey, orgin.getDefaultDouble(key.fKey));