@Override public void preferenceChange(AppPrefsChangeEvent evt) { super.preferenceChange(evt); colorWrapper.setRGB(getValue()); }
@Override public void preferenceChange(AppPrefsChangeEvent evt) { super.preferenceChange(evt); dateWrapper.getSimpleDateFormat().applyPattern(getValue()); }
/** * Returns a string object from the pref. NOTE: The value retrieved using this method would most * likely be set via the Prefs Dialog or someone else directly manipulating the preferences nodes * and calling flush to set off the pref listeners. * * @param section the section or category of the pref * @param pref the pref's name * @param attrName the actual attribute * @return the string value or default value */ public static String getValue(final String section, final String pref, final String attrName) { checkName(section, pref, attrName); AppPrefsCacheEntry prefsCacheEntry = getInstance().hash.get(makeKey(section, pref, attrName)); return prefsCacheEntry != null ? prefsCacheEntry.getValue() : ""; // $NON-NLS-1$ }