|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.preference.PreferenceNode
com.ibm.lpex.alef.LpexViewPreferenceNode
PreferenceNode for the view-scoped preference pages. You may extend this class in order to create custom preference page nodes. Extenders of this class must implement getLabelText().
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-encoding preference page (SourceEncodingPreferencePage). |
Constructor Summary | |
---|---|
LpexViewPreferenceNode(LpexSourceViewer lpexSourceViewer)
Constructor for a custom view-scoped preference page node. |
Method Summary | |
---|---|
void | createPage()
Creates and sets the preference page for this view-scoped node. |
String | getLabelText()
Returns the name of this preference node. |
int | getNodeType()
Retrieves the type of this preference node. |
Methods inherited from class org.eclipse.jface.preference.PreferenceNode |
---|
add, disposeResources, findSubNode, getId, getImageDescriptor, getLabelImage, 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 |
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)
Method Detail |
public int getNodeType()
public String getLabelText()
public final void createPage()
Eclipse preference pages are created lazily when the user selects a node. 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 will be called when the user selects this node in a new "Preferences" dialog.
The custom preference page for this node must be created by extending LpexAbstractTextEditor.createViewPreferencePage(com.ibm.lpex.core.LpexView, int) or LpexSourceViewer.createViewPreferencePage(com.ibm.lpex.core.LpexView, int).
|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |