Class IEclipsePreferences.PreferenceChangeEvent

    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      org.osgi.service.prefs.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.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PreferenceChangeEvent

        public PreferenceChangeEvent​(java.lang.Object node,
                                     java.lang.String key,
                                     java.lang.Object oldValue,
                                     java.lang.Object newValue)
        Constructor for a new preference change event. The node and the key must not be null. The old and new preference values must be either a String or null.
        Parameters:
        node - the node on which the change occurred
        key - the preference key
        oldValue - the old preference value, as a String or null
        newValue - the new preference value, as a String or null
    • Method Detail

      • getNode

        public org.osgi.service.prefs.Preferences getNode()
        Return the preference node on which the change occurred. Must not be null.
        Returns:
        the node
      • getKey

        public java.lang.String getKey()
        Return the key of the preference which was changed. Must not be null.
        Returns:
        the preference key
      • getNewValue

        public java.lang.Object getNewValue()
        Return the new value for the preference encoded as a String, or null if the preference was removed.
        Returns:
        the new value or null
      • getOldValue

        public 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.
        Returns:
        the old value or null