|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PreferenceNode com.ibm.lpex.alef.LpexViewPreferenceNode
public class LpexViewPreferenceNode
PreferenceNode for a view-scoped preference page.
You may extend this class in order to create custom preference page nodes.
Custom nodes may be added by extending
LpexAbstractTextEditor.createViewPreferenceNodes()
or
LpexSourceViewer.createViewPreferenceNodes()
.
Extenders of this class must implement method getLabelText()
.
Also, the preference page for a custom node must be created, by extending
LpexAbstractTextEditor.createViewPreferencePage()
or
LpexSourceViewer.createViewPreferencePage()
.
Field Summary | |
---|---|
static int |
VIEW_BASE_PREFERENCE_NODE
Node type for the LPEX built-in base preference page (ViewBasePreferencePage). |
static int |
VIEW_PARSER_PREFERENCE_NODE
Node type for the LPEX built-in parser preference page (ViewParserPreferencePage). |
static int |
VIEW_SEQUENCE_NUMBERS_PREFERENCE_NODE
Node type for the LPEX built-in sequence-numbers preference page (SequenceNumbersPreferencePage). |
static int |
VIEW_SOURCE_ENCODING_PREFERENCE_NODE
Node type for the LPEX built-in source-emulation preference page (SourceEncodingPreferencePage). |
Constructor Summary | |
---|---|
LpexViewPreferenceNode(LpexSourceViewer lpexSourceViewer)
Constructor for a custom view-scoped preference page node to be shown in the workbench "Preferences" dialog. |
Method Summary | |
---|---|
void |
createPage()
Constructs and sets the preference page for this view-scoped node. |
String |
getLabelText()
Returns the name of this preference node. |
int |
getNodeType()
Returns the type of this preference node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VIEW_BASE_PREFERENCE_NODE
public static final int VIEW_PARSER_PREFERENCE_NODE
public static final int VIEW_SEQUENCE_NUMBERS_PREFERENCE_NODE
public static final int VIEW_SOURCE_ENCODING_PREFERENCE_NODE
Constructor Detail |
---|
public LpexViewPreferenceNode(LpexSourceViewer lpexSourceViewer)
getNodeType()
.
lpexSourceViewer
- the source viewer instanceMethod Detail |
---|
public int getNodeType()
public String getLabelText()
Extenders of this class must implement this method in order to return the name for custom view preference page nodes they create.
public final void createPage()
Eclipse preference pages will be created lazily when the user selects a node. Method getPage() != null is used to track what pages have been visited. When the "Preferences" dialog is dismissed, the node resources are disposed (disposeResources() is called). This method is called when the user first selects this particular node in the "Preferences" dialog; afterwards, method #createControl() in the preference page will be called by PreferenceDialog to build the page.
The custom preference page for this node must be created by extending
LpexAbstractTextEditor.createViewPreferencePage()
or
LpexSourceViewer.createViewPreferencePage()
.
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |