|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.preference.PreferenceManager
A preference manager maintains a hierarchy of preference nodes and associated preference pages.
Field Summary | |
static int | POST_ORDER
Post-order means visit the children, and then the root. |
static int | PRE_ORDER
Pre-order traversal means visit the root first, then the children. |
Constructor Summary | |
PreferenceManager()
Creates a new preference manager. | |
PreferenceManager(char separatorChar)
Creates a new preference manager with the given the path separator. |
Method Summary | |
boolean | addTo(String path,
IPreferenceNode node)
Adds the given preference node as a subnode of the node at the given path. |
void | addToRoot(IPreferenceNode node)
Adds the given preference node as a subnode of the root. |
protected void | buildSequence(IPreferenceNode node,
List sequence,
int order)
Recursively enumerates all nodes at or below the given node and adds them to the given list in the given order. |
IPreferenceNode | find(String path)
Finds and returns the contribution node at the given path. |
List | getElements(int order)
Returns all preference nodes managed by this manager. |
protected IPreferenceNode | getRoot()
Returns the root node. |
boolean | remove(IPreferenceNode node)
Removes the given prefreence node if it is managed by this contribution manager. |
IPreferenceNode | remove(String path)
Removes the prefernece node at the given path. |
void | removeAll()
Removes all contribution nodes known to this manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PRE_ORDER
public static final int POST_ORDER
Constructor Detail |
public PreferenceManager()
public PreferenceManager(char separatorChar)
Method Detail |
public boolean addTo(String path, IPreferenceNode node)
public void addToRoot(IPreferenceNode node)
protected void buildSequence(IPreferenceNode node, List sequence, int order)
public IPreferenceNode find(String path)
public List getElements(int order)
protected IPreferenceNode getRoot()
public IPreferenceNode remove(String path)
public boolean remove(IPreferenceNode node)
public void removeAll()
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.