public class TextEditorPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage
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.
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING
ERROR, INFORMATION, NONE, WARNING
Constructor and Description |
---|
TextEditorPreferencePage()
Deprecated.
Creates and returns the text editor preference page.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent)
Deprecated.
The
PreferencePage implementation of this
IDialogPage method creates a description label
and button bar for the page. |
void |
createFieldEditors()
Deprecated.
Creates the page's field editors.
|
void |
init(IWorkbench workbench)
Deprecated.
Initializes this preference page for the given workbench.
|
static void |
initDefaults(IPreferenceStore store)
Deprecated.
Initializes the defaults for the given store.
|
addField, adjustGridLayout, applyFont, checkState, createContents, dispose, getFieldEditorParent, initialize, performDefaults, performOk, propertyChange, setVisible
applyData, applyDialogFont, computeSize, contributeButtons, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
computeSize, isValid, okToLeave, performCancel, performOk, setContainer, setSize
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
public TextEditorPreferencePage()
public void createControl(Composite parent)
PreferencePage
PreferencePage
implementation of this
IDialogPage
method creates a description label
and button bar for the page. It calls createContents
to create the custom contents of the page.
If a subclass that overrides this method creates a Composite
that has a layout with default margins (for example, a GridLayout
)
it is expected to set the margins of this Layout
to 0 pixels.
createControl
in interface IDialogPage
createControl
in class PreferencePage
parent
- the parent compositeIDialogPage.createControl(Composite)
public 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
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.