org.eclipse.net4j.util.ui.prefs
Class OMPreferencePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.preference.PreferencePage
          extended by 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

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
OMPreferencePage(OMPreferences preferences)
           
 
Method Summary
protected  void addListeners(Control control)
           
protected  Control createContents(Composite parent)
          Creates and returns the SWT control for the customized body of this preference page under the given parent composite.
protected abstract  Control createUI(Composite parent)
           
protected  void dialogChanged()
           
protected  IPreferenceStore doGetPreferenceStore()
          Returns the preference store of this preference page.
protected  ModifyListener getModifyListener()
           
 OMPreferences getPreferences()
           
protected  SelectionListener getSelectionListener()
           
 IWorkbench getWorkbench()
           
 void init(IWorkbench workbench)
          Initializes this preference page for the given workbench.
 
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 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

OMPreferencePage

public OMPreferencePage(OMPreferences preferences)
Method Detail

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.