public static final class IEclipsePreferences.PreferenceChangeEvent extends EventObject
IEclipsePreferences.IPreferenceChangeListener
,
Serialized Formsource
Constructor and Description |
---|
IEclipsePreferences.PreferenceChangeEvent(Object node,
String key,
Object oldValue,
Object newValue)
Constructor for a new preference change event.
|
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Return the key of the preference which was changed.
|
Object |
getNewValue()
Return the new value for the preference encoded as a
String , or null if the
preference was removed. |
org.osgi.service.prefs.Preferences |
getNode()
Return the preference node on which the change occurred.
|
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. |
getSource, toString
public IEclipsePreferences.PreferenceChangeEvent(Object node, String key, Object oldValue, 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 null
newValue
- the new preference value, as a String
or null
public org.osgi.service.prefs.Preferences getNode()
null
.public String getKey()
null
.public Object getNewValue()
String
, or null
if the
preference was removed.null
public Object getOldValue()
String
, or null
if the
preference was removed or if it cannot be determined.null
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.