|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PreferencePage com.ibm.lpex.alef.preferences.ParsersPreferencePage
public final class ParsersPreferencePage
Preference page for document parser settings. It lets the user add and remove registered parsers.
Constructor Summary | |
---|---|
ParsersPreferencePage()
|
Method Summary | |
---|---|
protected void |
contributeButtons(Composite buttonBar)
Contributes a "Reset" button. |
protected Control |
createContents(Composite parent)
Creates and returns the SWT control for the customized body of this preference page. |
void |
dispose()
Extended in order to clear the last document parser selected for this LPEX instance. |
protected void |
doSetPressed(String name,
String className)
Handles the "Set" button having been pressed. |
protected Vector<com.ibm.lpex.alef.preferences.LpexTableItem> |
getItems()
Returns the current vector of LpexTableItems in the table. |
protected String |
getValue2()
Returns the text in the value2 edit field. |
protected String[] |
getValue2Options()
Returns an array of options for the value2 combo list, when a combo box is used as the value2 edit field. |
protected String[] |
getValueNames()
Returns the names for the text-field labels. |
protected String[] |
getValueTableNames()
Returns the names for the table columns. |
protected int[] |
getValueWeights()
Returns the column weights for the two columns in the table. |
void |
init(IWorkbench workbench)
Initializes this preference page for the given workbench. |
protected Vector<com.ibm.lpex.alef.preferences.LpexTableItem> |
initialize()
Returns a new vector of LpexTableItems with the initial settings (the preference page is being initialized). |
protected Vector<com.ibm.lpex.alef.preferences.LpexTableItem> |
initializeDefaults()
Returns a new vector of LpexTableItems with the install settings ("Restore Defaults" button was pressed). |
protected void |
performDefaults()
"Restore Defaults" button pressed. |
boolean |
performOk()
"OK" / "Apply" button pressed. |
protected void |
performReset()
"Reset" button pressed. |
protected void |
selectItem(String value1)
Selects an item in the table, and ensures it shows. |
static void |
setLastParserSelected(String parser)
Records the last document parser selected in this LPEX instance. |
void |
setValid(boolean b)
Sets whether this page is valid. |
protected void |
setValue2Options()
Called to (re)set the options list in the value2 combo, when a combo box is used as the value2 edit field. |
void |
setVisible(boolean visible)
Extended in order to update the document parser each time this page is made visible. |
protected void |
tableSelectionModified(String newValue1,
String newValue2)
Notification from superclass TablePreferencePage that the table selection was modified. |
protected Text |
value1Info()
Returns the Text widget used to display additional information for the value1 edit field. |
protected void |
value1Modified()
Value1 is being edited in the text field. |
protected Text |
value1TextField()
Returns the Text widget used as the value1 edit field. |
protected void |
value2ListSelectionModified()
A new Value2 has been selected in the combo field list. |
protected void |
value2Modified()
Value2 is being edited in the text field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsersPreferencePage()
Method Detail |
---|
protected Control createContents(Composite parent)
PreferencePage
public static void setLastParserSelected(String parser)
parser
- a document parser name, e.g., "cpp"
(see the parser editor parameter)public void setVisible(boolean visible)
public void dispose()
protected String[] getValueTableNames()
protected String[] getValueNames()
protected int[] getValueWeights()
protected Vector<com.ibm.lpex.alef.preferences.LpexTableItem> initialize()
protected Vector<com.ibm.lpex.alef.preferences.LpexTableItem> initializeDefaults()
protected void tableSelectionModified(String newValue1, String newValue2)
public boolean performOk()
protected void doSetPressed(String name, String className)
name
- trimmed value read from the value1 entry fieldclassName
- trimmed value read from the value2 entry fieldprotected void value1Modified()
protected void value2Modified()
public void init(IWorkbench workbench)
The TablePreferencePage implementation of this method does nothing.
protected Text value1TextField()
protected String getValue2()
protected Text value1Info()
public void setValid(boolean b)
protected void contributeButtons(Composite buttonBar)
buttonBar
- the preference-page button barPreferencePage
,
performReset()
protected void performDefaults()
protected void performReset()
protected String[] getValue2Options()
setValue2Options()
protected void setValue2Options()
getValue2Options()
protected Vector<com.ibm.lpex.alef.preferences.LpexTableItem> getItems()
protected void value2ListSelectionModified()
protected void selectItem(String value1)
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |