|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.dialogs.DialogPage | +--org.eclipse.jface.preference.PreferencePage | +--org.eclipse.jface.preference.FieldEditorPreferencePage | +--org.eclipse.ui.editors.text.TextEditorPreferencePage
A preference page to set the font used in the default text editor.
This preference page uses the text editor's preference bundle and
uses the key "PreferencePage.description"
to look up
the page description. In addition, it uses "PreferencePage.fontEditor"
for the editor description.
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 | |
TextEditorPreferencePage()
Create the preference page. |
Method Summary | |
void |
createControl(Composite parent)
Creates the top level control for this dialog page under the given parent composite. |
void |
createFieldEditors()
Creates the page's field editors. |
void |
init(IWorkbench workbench)
Initializes this preference page for the given workbench. |
static void |
initDefaults(IPreferenceStore store)
Initialzes the defaults for the given store. |
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage |
addField, adjustGridLayout, applyFont, checkState, createContents, dispose, getFieldEditorParent, initialize, performDefaults, performOk, propertyChange, setVisible |
Methods inherited from class org.eclipse.jface.preference.PreferencePage |
computeSize, contributeButtons, createDescriptionLabel, doComputeSize, doGetPreferenceStore, getContainer, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, 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, performHelp, 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 |
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
Constructor Detail |
public TextEditorPreferencePage()
Method Detail |
public void createControl(Composite parent)
IDialogPage
Implementors are responsible for ensuring that
the created control can be accessed via getControl
createControl
in interface IDialogPage
createControl
in class PreferencePage
parent
- the parent compositepublic void createFieldEditors()
FieldEditorPreferencePage
The default implementation of this framework method does nothing. Subclass must implement this method to create the field editors.
Subclasses should call getFieldEditorParent
to obtain the parent control for each field editor.
This same parent should not be used for more than
one editor as the parent may change for each field
editor depending on the layout style of the page
createFieldEditors
in class FieldEditorPreferencePage
public void init(IWorkbench workbench)
IWorkbenchPreferencePage
This method is called automatically as the preference page is being created and initialized. Clients must not call this method.
init
in interface IWorkbenchPreferencePage
workbench
- the workbenchpublic static void initDefaults(IPreferenceStore store)
store
- the preference store
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |