Class IEclipsePreferences.NodeChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.eclipse.core.runtime.preferences.IEclipsePreferences.NodeChangeEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing interface:
- IEclipsePreferences
public static final class IEclipsePreferences.NodeChangeEvent extends java.util.EventObjectAn event object which describes the details of a change in the preference node hierarchy. The child node is the one which was added or removed.- Since:
- 3.0
- See Also:
IEclipsePreferences.INodeChangeListener, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeChangeEvent(org.osgi.service.prefs.Preferences parent, org.osgi.service.prefs.Preferences child)Constructor for a new node change event object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.service.prefs.PreferencesgetChild()Return the child node for this event.org.osgi.service.prefs.PreferencesgetParent()Return the parent node for this event.
-
-
-
Method Detail
-
getParent
public org.osgi.service.prefs.Preferences getParent()
Return the parent node for this event. This is the parent of the node which was added or removed.- Returns:
- the parent node
-
getChild
public org.osgi.service.prefs.Preferences getChild()
Return the child node for this event. This is the node which was added or removed.Note: The child node may have been removed as a result of the bundle supplying its implementation being un-installed. In this case the only method which can safely be called on the child is #name().
- Returns:
- the child node
-
-