Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

com.ibm.lpex.alef.preferences
Class LpexFieldEditorPreferencePage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.preference.PreferencePage
          extended byorg.eclipse.jface.preference.FieldEditorPreferencePage
              extended bycom.ibm.lpex.alef.preferences.LpexFieldEditorPreferencePage

All Implemented Interfaces:
EventListener, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.preference.IPreferencePage, org.eclipse.jface.util.IPropertyChangeListener, org.eclipse.ui.IWorkbenchPreferencePage

Direct Known Subclasses:
BlockPreferencePage, ComparePreferencePage, ControlsPreferencePage, FindTextPreferencePage, LpexBasePreferencePage, PrintPreferencePage, SavePreferencePage, SequenceNumbersPreferencePage, SourceEncodingPreferencePage, TabsPreferencePage, UserProfilePreferencePage, ViewParserPreferencePage


public abstract class LpexFieldEditorPreferencePage
extends org.eclipse.jface.preference.FieldEditorPreferencePage
implements org.eclipse.ui.IWorkbenchPreferencePage

LPEX adaptation of FieldEditorPreferencePage. It implements a series of common methods used by LPEX preference pages. Method contributeButtons() adds a "Reset" button, which restores the initial settings in effect when the preference page came up.

Eclipse's FieldEditorPreferencePage is an abstract preference page for hosting field editors. Subclasses must implement the createFieldEditors method, and should override createLayout() if a special layout of the field editors is needed.


Field Summary
 
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
protected LpexFieldEditorPreferencePage(String title, int style)
          Constructor for a preference page with the given title and style, and no image.
 
Method Summary
protected  void contributeButtons(org.eclipse.swt.widgets.Composite buttonBar)
          The LpexFieldEditorPreferencePage implementation of this method contributes a "Reset" button.
protected  void fieldEditorsCreated()
          Hook for extenders of certain LPEX preference pages.
 void init(org.eclipse.ui.IWorkbench workbench)
          Initializes this preference page for the given workbench.
protected  void performReset()
          "Reset" button pressed.
 
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
addField, adjustGridLayout, applyFont, checkState, createContents, createFieldEditors, dispose, getFieldEditorParent, initialize, performDefaults, performOk, propertyChange, setVisible
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyDialogFont, computeSize, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, performOk, setContainer, setSize
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 

Constructor Detail

 

 

LpexFieldEditorPreferencePage

protected LpexFieldEditorPreferencePage(String title,
                                        int style)

Constructor for a preference page with the given title and style, and no image.

Parameters:
style - either GRID or FLAT
Method Detail

 

 

contributeButtons

protected void contributeButtons(org.eclipse.swt.widgets.Composite buttonBar)

The LpexFieldEditorPreferencePage implementation of this method contributes a "Reset" button. Method performReset() is called when this button is selected.

Parameters:
buttonBar - the preference-page button bar
See Also:
PreferencePage.contributeButtons(org.eclipse.swt.widgets.Composite), performReset()


 

 

performReset

protected void performReset()

"Reset" button pressed. The LpexFieldEditorPreferencePage implementation of this method does nothing. Override to restore the initial settings of the preference page.

See Also:
contributeButtons(org.eclipse.swt.widgets.Composite)


 

 

init

public void init(org.eclipse.ui.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 LpexFieldEditorPreferencePage implementation of this method does nothing.

Specified by:
init in interface org.eclipse.ui.IWorkbenchPreferencePage


 

 

fieldEditorsCreated

protected void fieldEditorsCreated()

Hook for extenders of certain LPEX preference pages. Called after createFieldEditors(), it allows the subclass to disable selected fields in the preference page.

The LpexFieldEditorPreferencePage implementation of this method does nothing.

See Also:
FieldEditorPreferencePage.createFieldEditors()


 

Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD