|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.preference.PreferenceNode
org.mailster.gui.prefs.widgets.ExtendedPreferenceNode
public class ExtendedPreferenceNode
Extends PreferenceNode to support easy handling of different icons in
the TreeViewer and PreferencePage of a JFace
PreferenceDialog. This class changes the original behaviour to that
effect that the icon of a PreferencePage stays untouched and has to
be set in the implementing class itself.
| Field Summary | |
|---|---|
private java.lang.String |
classname
The name of the class that implements the PreferencePage
bound to this ExtendedPreferenceNode |
| Constructor Summary | |
|---|---|
ExtendedPreferenceNode(java.lang.String id)
Creates an ExtendedPreferenceNode with the given id. |
|
ExtendedPreferenceNode(java.lang.String id,
org.eclipse.jface.preference.IPreferencePage preferencePage)
Creates an ExtendedPreferenceNode with the given id and
preference page. |
|
ExtendedPreferenceNode(java.lang.String id,
java.lang.String label,
org.eclipse.jface.resource.ImageDescriptor image,
java.lang.String className)
Creates an ExtendedPreferenceNode with the given id,
label, and image, and lazily-loaded preference page. |
|
| Method Summary | |
|---|---|
private java.lang.Object |
createObject(java.lang.String className)
Creates a new instance of the given class className. |
void |
createPage()
Creates the PreferencePage according to the settings in
this ExtendedPreferenceNode. |
| Methods inherited from class org.eclipse.jface.preference.PreferenceNode |
|---|
add, disposeResources, findSubNode, getId, getImageDescriptor, getLabelImage, getLabelText, getPage, getSubNodes, remove, remove, setPage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String classname
PreferencePage
bound to this ExtendedPreferenceNode
| Constructor Detail |
|---|
public ExtendedPreferenceNode(java.lang.String id)
ExtendedPreferenceNode with the given id. The
new node has nosubnodes.
id - the node id
public ExtendedPreferenceNode(java.lang.String id,
java.lang.String label,
org.eclipse.jface.resource.ImageDescriptor image,
java.lang.String className)
ExtendedPreferenceNode with the given id,
label, and image, and lazily-loaded preference page. The preference node
assumes (sole) responsibility for disposing of the image; this will
happen when the node is disposed.
id - the node idlabel - the label used to display the node in the preference
dialog's treeimage - the image displayed left of the label in the preference
dialog's tree, or null if noneclassName - the class name of the preference page; this class must
implement IPreferencePage
public ExtendedPreferenceNode(java.lang.String id,
org.eclipse.jface.preference.IPreferencePage preferencePage)
ExtendedPreferenceNode with the given id and
preference page. The title of the preference page is used for the node
label. The node will not have an image.
id - the node idpreferencePage - the preference page| Method Detail |
|---|
public void createPage()
PreferencePage according to the settings in
this ExtendedPreferenceNode.
createPage in interface org.eclipse.jface.preference.IPreferenceNodecreatePage in class org.eclipse.jface.preference.PreferenceNodeprivate java.lang.Object createObject(java.lang.String className)
className.
className -
null in case of failures
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||