Interface IEclipsePreferences

  • All Superinterfaces:
    org.osgi.service.prefs.Preferences
    All Known Subinterfaces:
    IExportedPreferences

    public interface IEclipsePreferences
    extends org.osgi.service.prefs.Preferences
    This interface describes Eclipse extensions to the preference story. It provides means for both preference and node change listeners.

    Clients may implement this interface.

    Since:
    3.0
    See Also:
    Preferences
    • Method Detail

      • removeNode

        void removeNode()
                 throws org.osgi.service.prefs.BackingStoreException
        Remove this node from the preference hierarchy. If this node is the scope root, then do not remove this node, only remove this node's children.

        Functionally equivalent to calling Preferences.removeNode(). See the spec of Preferences.removeNode() for more details.

        Implementors must send the appropriate IEclipsePreferences.NodeChangeEvent to listeners who are registered on this node's parent.

        When this node is removed, its associated preference and node change listeners should be removed as well.

        Specified by:
        removeNode in interface org.osgi.service.prefs.Preferences
        Throws:
        org.osgi.service.prefs.BackingStoreException - if there was a problem removing this node
        See Also:
        Preferences.removeNode(), IEclipsePreferences.NodeChangeEvent
      • node

        org.osgi.service.prefs.Preferences node​(java.lang.String path)
        Return the preferences node with the given path. The given path must not be null.

        See the spec of Preferences.node(String) for more details.

        Note that if the node does not yet exist and is created, then the appropriate IEclipsePreferences.NodeChangeEvent must be sent to listeners who are registered at this node.

        Specified by:
        node in interface org.osgi.service.prefs.Preferences
        Parameters:
        path - the path of the node
        Returns:
        the node
        See Also:
        Preferences.node(String), IEclipsePreferences.NodeChangeEvent
      • accept

        void accept​(IPreferenceNodeVisitor visitor)
             throws org.osgi.service.prefs.BackingStoreException
        Accepts the given visitor. The visitor's visit method is called with this node. If the visitor returns true, this method visits this node's children.
        Parameters:
        visitor - the visitor
        Throws:
        org.osgi.service.prefs.BackingStoreException - if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
        See Also:
        IPreferenceNodeVisitor.visit(IEclipsePreferences)