public static final class IEclipsePreferences.PreferenceChangeEvent
extends java.util.EventObject
IEclipsePreferences.IPreferenceChangeListener,
Serialized Form| Constructor and Description |
|---|
PreferenceChangeEvent(java.lang.Object node,
java.lang.String key,
java.lang.Object oldValue,
java.lang.Object newValue)
Constructor for a new preference change event.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKey()
Return the key of the preference which was changed.
|
java.lang.Object |
getNewValue()
Return the new value for the preference encoded as a
String, or null if the
preference was removed. |
Preferences |
getNode()
Return the preference node on which the change occurred.
|
java.lang.Object |
getOldValue()
Return the old value for the preference encoded as a
String, or null if the
preference was removed or if it cannot be determined. |
public PreferenceChangeEvent(java.lang.Object node,
java.lang.String key,
java.lang.Object oldValue,
java.lang.Object newValue)
null. The old and new preference
values must be either a String or null.node - the node on which the change occurredkey - the preference keyoldValue - the old preference value, as a String
or nullnewValue - the new preference value, as a String
or nullpublic Preferences getNode()
null.public java.lang.String getKey()
null.public java.lang.Object getNewValue()
String, or null if the
preference was removed.nullpublic java.lang.Object getOldValue()
String, or null if the
preference was removed or if it cannot be determined.null
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.