public final class PreferenceChangeEvent
extends java.lang.Object
Note The types of the oldValue and newValue of the generated PreferenceChangeEvent are determined by whether or not the typed API was called. If values are changed via the typed API (e.g. via IBooleanPreference) the values in the PreferenceChangeEvent will be of that type. If they are set using a non typed API (e.g. using the OSGi Preferences) the values will be unconverted Strings.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getNewValue()
Returns the new value of the preference.
|
java.lang.Object |
getOldValue()
Returns the old value of the preference.
|
IPreference |
getPreference()
Returns the changed preference.
|
public IPreference getPreference()
null
)public java.lang.Object getOldValue()
null
if not known
or not relevant (for instance if the preference was just
added and there was no old value)public java.lang.Object getNewValue()
null
if not known
or not relevant (for instance if the preference was removed)