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_SPACINGERROR, 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, setVisibleapplyData, 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, updateApplyButtonconvertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomputeSize, isValid, okToLeave, performCancel, performOk, setContainer, setSizedispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisiblepublic TextEditorPreferencePage()
public void createControl(Composite parent)
PreferencePagePreferencePage 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 IDialogPagecreateControl in class PreferencePageparent - the parent compositepublic void createFieldEditors()
FieldEditorPreferencePageThe 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 FieldEditorPreferencePagepublic void init(IWorkbench workbench)
IWorkbenchPreferencePageThis method is called automatically as the preference page is being created and initialized. Clients must not call this method.
init in interface IWorkbenchPreferencePageworkbench - the workbenchpublic static void initDefaults(IPreferenceStore store)
store - the preference storeGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.