|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to a node in a preference dialog. A preference node maintains a label and image used to display the node in a preference dialog (usually in the form of a tree), as well as the preference page this node stands for. The node may use lazy creation for its page Note that all preference nodes must be dispose their resources. The node must dispose the page managed by this node, and any SWT resources allocated by this node (Images, Fonts, etc). However the node itself may be reused.
Method Summary | |
void |
add(IPreferenceNode node)
Adds the given preference node as a subnode of this preference node. |
void |
createPage()
Creates the preference page for this node. |
void |
disposeResources()
Release the page managed by this node, and any SWT resources held onto by this node (Images, Fonts, etc). |
IPreferenceNode |
findSubNode(String id)
Returns the subnode of this contribution node with the given node id. |
String |
getId()
Returns the id of this contribution node. |
Image |
getLabelImage()
Returns the image used to present this node in a preference dialog. |
String |
getLabelText()
Returns the text label used to present this node in a preference dialog. |
IPreferencePage |
getPage()
Returns the preference page for this node. |
IPreferenceNode[] |
getSubNodes()
Returns an iterator over the subnodes (immediate children) of this contribution node. |
boolean |
remove(IPreferenceNode node)
Removes the given preference node from the list of subnodes (immediate children) of this node. |
IPreferenceNode |
remove(String id)
Removes the subnode of this preference node with the given node id. |
Method Detail |
public void add(IPreferenceNode node)
node
- the node to addpublic void createPage()
public void disposeResources()
public IPreferenceNode findSubNode(String id)
id
- the preference node id
null
if nonepublic String getId()
public Image getLabelImage()
null
if these is no image for this nodepublic String getLabelText()
null
if these is no label for this nodepublic IPreferencePage getPage()
public IPreferenceNode[] getSubNodes()
public IPreferenceNode remove(String id)
id
- the subnode id
null
if nonepublic boolean remove(IPreferenceNode node)
node
- the node to remove
true
if the node was removed,
and false
otherwise
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |