public final class PreferenceChangeEvent
extends java.lang.Object
Note: The type of the old and new values of the preference in a
PreferenceChangeEvent
is determined by whether or not the
change was made via the typed preference API. If the value of a preference
was changed via the typed API (e.g., via IBooleanPreference
), the
values in the PreferenceChangeEvent
will be of the appropriate
specific type. If a non-typed API was used (e.g., 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 (e.g., if the preference was just added
and there was no old value)public java.lang.Object getNewValue()
null
if not known
or not relevant (e.g., if the preference was removed)Copyright (c) 2014, 2018 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0