org.eclipse.net4j.util.ui.prefs
Class OMPreferencePage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.net4j.util.ui.prefs.OMPreferencePage
- All Implemented Interfaces:
- IDialogPage, IMessageProvider, IPreferencePage, IWorkbenchPreferencePage
public abstract class OMPreferencePage
- extends PreferencePage
- implements IWorkbenchPreferencePage
- Author:
- Eike Stepper
Methods inherited from class org.eclipse.jface.preference.PreferencePage |
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performDefaults, performHelp, performOk, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
OMPreferencePage
public OMPreferencePage(OMPreferences preferences)
getPreferences
public OMPreferences getPreferences()
getWorkbench
public IWorkbench getWorkbench()
init
public void init(IWorkbench workbench)
- Description copied from interface:
org.eclipse.ui.IWorkbenchPreferencePage
- Initializes this preference page for the given workbench.
This method is called automatically as the preference page is being created
and initialized. Clients must not call this method.
- Specified by:
init
in interface IWorkbenchPreferencePage
- Parameters:
workbench
- the workbench
doGetPreferenceStore
protected IPreferenceStore doGetPreferenceStore()
- Description copied from class:
org.eclipse.jface.preference.PreferencePage
- Returns the preference store of this preference page.
This is a framework hook method for subclasses to return a
page-specific preference store. The default implementation
returns null
.
- Overrides:
doGetPreferenceStore
in class PreferencePage
- Returns:
- the preference store, or
null
if none
getSelectionListener
protected final SelectionListener getSelectionListener()
getModifyListener
protected final ModifyListener getModifyListener()
dialogChanged
protected void dialogChanged()
createContents
protected final Control createContents(Composite parent)
- Description copied from class:
org.eclipse.jface.preference.PreferencePage
- Creates and returns the SWT control for the customized body
of this preference page under the given parent composite.
This framework method must be implemented by concrete subclasses. Any
subclass returning a Composite
object whose Layout
has default margins (for example, a GridLayout
) are expected to
set the margins of this Layout
to 0 pixels.
- Specified by:
createContents
in class PreferencePage
- Parameters:
parent
- the parent composite
- Returns:
- the new control
addListeners
protected void addListeners(Control control)
createUI
protected abstract Control createUI(Composite parent)
Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.