Package org.eclipse.mat.ui.internal
Class UIPreferencePage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.jface.preference.FieldEditorPreferencePage
org.eclipse.mat.ui.internal.UIPreferencePage
- All Implemented Interfaces:
EventListener,IDialogPage,IMessageProvider,IPreferencePage,IPropertyChangeListener,IWorkbenchPreferencePage
This class represents a preference page that is contributed to the
Preferences dialog. By subclassing { link org.eclipse.jface.preference.FieldEditorPreferencePage}, we
can use the field support built into JFace that allows us to create a page
that is small and knows how to save, restore and apply itself.
This page is used to modify preferences only. They are stored in the preference store that belongs to the main plug-in class. That way, preferences can be accessed directly via the preference store.
-
Field Summary
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRIDFields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates the field editors.voidinit(IWorkbench workbench) booleanvoidMethods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
dispose, setVisibleMethods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, computeSize, createControl, getContainer, getPreferenceStore, isValid, okToLeave, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toStringMethods inherited from class org.eclipse.jface.dialogs.DialogPage
getControl, getDescription, getErrorMessage, getImage, getMessage, getMessageType, getShell, getTitle, setDescription, setImageDescriptor, setMessageMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisibleMethods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, setContainer, setSize
-
Constructor Details
-
UIPreferencePage
public UIPreferencePage()
-
-
Method Details
-
createFieldEditors
public void createFieldEditors()Creates the field editors. Field editors are abstractions of the common GUI blocks needed to manipulate various types of preferences. Each field editor knows how to save and restore itself. -
init
- Specified by:
initin interfaceIWorkbenchPreferencePage
-
performOk
public boolean performOk()- Specified by:
performOkin interfaceIPreferencePage- Overrides:
performOkin classFieldEditorPreferencePage
-
propertyChange
- Specified by:
propertyChangein interfaceIPropertyChangeListener- Overrides:
propertyChangein classFieldEditorPreferencePage
-