|
LPEX 3.6.8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPreferencePage
com.ibm.lpex.alef.preferences.ParserAssociationsPreferencePage
public final class ParserAssociationsPreferencePage
Preference page for LPEX's parser associations. It lets the user add and remove parser - document type associations.
The "Document parser" combo list is prefilled with the parsers defined in the editor.
Constructor Summary | |
---|---|
ParserAssociationsPreferencePage()
Constructor. |
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. |
protected void |
doSetPressed(String extension,
String documentParser)
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 the parser names available to the updateProfile command for the value2 combo. |
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. |
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 refresh the combo box list of available parsers 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 / combo field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParserAssociationsPreferencePage()
Method Detail |
---|
protected Control createContents(Composite parent)
PreferencePage
public void setVisible(boolean visible)
protected String[] getValueTableNames()
protected String[] getValueNames()
protected int[] getValueWeights()
protected String[] getValue2Options()
setValue2Options()
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 extension, String documentParser)
extension
- trimmed value read from the value1 entry fielddocumentParser
- trimmed value read from the value2 entry fieldpublic 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 void setValue2Options()
getValue2Options()
protected Vector<com.ibm.lpex.alef.preferences.LpexTableItem> getItems()
protected void value1Modified()
protected void value2Modified()
protected void value2ListSelectionModified()
protected void selectItem(String value1)
|
LPEX 3.6.8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |