LPEX
4.4.0

com.ibm.lpex.alef.preferences
Class ParserStylesPreferencePage

java.lang.Object
  extended by PreferencePage
      extended by com.ibm.lpex.alef.preferences.ParserStylesPreferencePage

public final class ParserStylesPreferencePage
extends PreferencePage

Preference page for customization of document parser styles.


Constructor Summary
ParserStylesPreferencePage()
          Default constructor.
 
Method Summary
protected  void contributeButtons(Composite buttonBar)
          Contributes a "Reset" button.
protected  Control createContents(Composite ancestor)
          Creates and returns the SWT control for the customized body of this preference page under the given Composite.
 void dispose()
          Disposes the SWT resources allocated by this dialog page.
 void init(IWorkbench workbench)
          Initializes this preference page for the given workbench.
protected  void performDefaults()
          "Restore Defaults" button pressed.
 boolean performOk()
          "OK" / "Apply" button pressed.
protected  void performReset()
          "Reset" button pressed.
 void setVisible(boolean visible)
          Sets the visibility of this dialog page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserStylesPreferencePage

public ParserStylesPreferencePage()
Default constructor.

Method Detail

createContents

protected Control createContents(Composite ancestor)
Creates and returns the SWT control for the customized body of this preference page under the given Composite.

See Also:
PreferencePage

init

public void init(IWorkbench workbench)
Initializes this preference page for the given workbench. This method, defined by IWorkbenchPreferencePage, is called automatically when the preference page defined in plugin.xml is being created and initialized.

The ParserStylesPreferencePage implementation of this method does nothing.


contributeButtons

protected void contributeButtons(Composite buttonBar)
Contributes a "Reset" button. Method performReset() is called when this button is selected.

Parameters:
buttonBar - the preference-page button bar
See Also:
PreferencePage, performReset()

performDefaults

protected void performDefaults()
"Restore Defaults" button pressed. Sets all the values and the dialog fields to the editor install settings.


performReset

protected void performReset()
"Reset" button pressed. Restores the initial preference-page settings.


performOk

public boolean performOk()
"OK" / "Apply" button pressed. Commits any new updated values, and ensures that any changes are reflected correctly on all the LPEX screens.


setVisible

public void setVisible(boolean visible)
Sets the visibility of this dialog page. Extended in order to update the document parser each time this page is made visible.


dispose

public void dispose()
Disposes the SWT resources allocated by this dialog page. Extended in order to clear the last used document parser when this page is disposed.


LPEX
4.4.0

Copyright � 2016 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.