LPEX
4.4.0

com.ibm.lpex.alef.preferences
Class AppearancePreferencePage

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

public final class AppearancePreferencePage
extends PreferencePage

Preference page for LPEX's default palette, font, and editor style settings.


Constructor Summary
AppearancePreferencePage()
          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 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

AppearancePreferencePage

public AppearancePreferencePage()
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 AppearancePreferencePage 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. Sets all the values and the dialog fields to 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 which have default settings for these.


setVisible

public void setVisible(boolean visible)
Sets the visibility of this dialog page. Extended in order to refresh the preview screen each time this page is made visible.


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.