public class SectionPreferencePage
extends org.eclipse.jface.preference.FieldEditorPreferencePage
implements org.eclipse.ui.IWorkbenchPreferencePage
| Red (tfeng) |
| Red (tfeng) |
| Constructor and Description |
|---|
SectionPreferencePage(java.lang.String description)
Construct a preference page with multiple sections and with a page
description.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.swt.widgets.Composite |
_createSection(java.lang.String title,
java.lang.String description)
Create a section in this page with a title and a section description.
|
protected org.eclipse.swt.widgets.Composite |
_getParent(org.eclipse.jface.preference.FieldEditor editor)
Given a field editor, return its parent.
|
protected org.eclipse.swt.widgets.Composite |
_newComposite(org.eclipse.swt.widgets.Composite parent)
Create a new container with the given parent.
|
protected org.eclipse.swt.widgets.Composite |
_newComposite(org.eclipse.swt.widgets.Composite parent,
int column)
Create a new container with the given composite container as its parent,
and use a grid layout with the specified number of columns.
|
protected org.eclipse.swt.widgets.Group |
_newGroup(org.eclipse.swt.widgets.Composite parent,
java.lang.String title)
Create a new group with the given parent and the given title.
|
protected static void |
_setEnabled(org.eclipse.swt.widgets.Composite composite,
boolean enabled)
Set whether a container and all its children are enabled.
|
protected void |
_setParent(org.eclipse.jface.preference.FieldEditor editor,
org.eclipse.swt.widgets.Composite parent)
Set the parent of a field editor.
|
org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent)
Create the contents of the preference page with the parent as its
container.
|
protected void |
createFieldEditors()
Create field editors.
|
void |
init(org.eclipse.ui.IWorkbench workbench)
Initialize.
|
addField, adjustGridLayout, applyFont, checkState, dispose, getFieldEditorParent, initialize, performDefaults, performOk, propertyChange, setVisibleapplyData, applyDialogFont, computeSize, contributeButtons, createControl, 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, waitpublic SectionPreferencePage(java.lang.String description)
description - The description.public org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents in class org.eclipse.jface.preference.FieldEditorPreferencePageparent - The parent container.public void init(org.eclipse.ui.IWorkbench workbench)
init in interface org.eclipse.ui.IWorkbenchPreferencePageworkbench - The workbench.protected org.eclipse.swt.widgets.Composite _createSection(java.lang.String title,
java.lang.String description)
title - The title.description - The description.protected org.eclipse.swt.widgets.Composite _getParent(org.eclipse.jface.preference.FieldEditor editor)
editor - The field editor._setParent(FieldEditor, Composite)protected org.eclipse.swt.widgets.Composite _newComposite(org.eclipse.swt.widgets.Composite parent)
parent - The parent container.protected org.eclipse.swt.widgets.Composite _newComposite(org.eclipse.swt.widgets.Composite parent,
int column)
parent - The parent container.column - The number of columns in the grid layout.protected org.eclipse.swt.widgets.Group _newGroup(org.eclipse.swt.widgets.Composite parent,
java.lang.String title)
parent - The parent container.title - The title.protected static void _setEnabled(org.eclipse.swt.widgets.Composite composite,
boolean enabled)
composite - The container.enabled - Whether the container and all its children are enabled.protected void _setParent(org.eclipse.jface.preference.FieldEditor editor,
org.eclipse.swt.widgets.Composite parent)
editor - The field editor.parent - The parent._getParent(FieldEditor)protected void createFieldEditors()
createFieldEditors in class org.eclipse.jface.preference.FieldEditorPreferencePage