|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.jface.preference.FieldEditorPreferencePage
org.eclipse.xtext.ui.editor.preferences.AbstractPreferencePage
public abstract class AbstractPreferencePage
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 | |
---|---|
AbstractPreferencePage()
|
Method Summary | |
---|---|
protected void |
addField(org.eclipse.jface.preference.FieldEditor editor)
Adds the given field editor to this page. |
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent)
Creates and returns the SWT control for the customized body of this preference page under the given parent composite. |
void |
createControl(org.eclipse.swt.widgets.Composite parent)
The PreferencePage implementation of this
IDialogPage method creates a description label
and button bar for the page. |
protected org.eclipse.jface.preference.IPreferenceStore |
doGetPreferenceStore()
Returns the preference store of this preference page. |
org.eclipse.core.runtime.IAdaptable |
getElement()
Returns the object that owns the properties shown in this page. |
protected java.lang.String |
getLanguageName()
|
protected java.lang.String |
getQualifier()
|
protected org.eclipse.ui.IWorkbench |
getWorkbench()
|
void |
init(org.eclipse.ui.IWorkbench workbench)
Initializes this preference page for the given workbench. |
boolean |
isPropertyPage()
|
boolean |
performOk()
The field editor preference page implementation of this PreferencePage method saves all field editors by
calling FieldEditor.store . |
protected java.lang.String |
qualifiedName()
|
void |
setElement(org.eclipse.core.runtime.IAdaptable element)
Sets the object that owns the properties shown in this page. |
protected void |
updateFieldEditors(boolean enabled)
|
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage |
---|
adjustGridLayout, applyFont, checkState, createFieldEditors, dispose, getFieldEditorParent, initialize, performDefaults, propertyChange, setVisible |
Methods inherited from class org.eclipse.jface.preference.PreferencePage |
---|
applyData, applyDialogFont, computeSize, contributeButtons, createDescriptionLabel, createNoteComposite, doComputeSize, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, 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, setButtonLayoutData, 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, 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 AbstractPreferencePage()
Method Detail |
---|
public void init(org.eclipse.ui.IWorkbench workbench)
org.eclipse.ui.IWorkbenchPreferencePage
This method is called automatically as the preference page is being created and initialized. Clients must not call this method.
init
in interface org.eclipse.ui.IWorkbenchPreferencePage
workbench
- the workbenchprotected org.eclipse.ui.IWorkbench getWorkbench()
public void setElement(org.eclipse.core.runtime.IAdaptable element)
org.eclipse.ui.IWorkbenchPropertyPage
getElement
is called.
As of Eclipse 3.2 the org.eclipse.ui.propertyPages extension point now supports non IAdaptable inputs. An input that is not an IAdaptable will be wrapped in an IAdaptable by the workbench before it is forwarded to this method.
setElement
in interface org.eclipse.ui.IWorkbenchPropertyPage
element
- the object that owns the properties shown in this pagePropertyDialogAction
public org.eclipse.core.runtime.IAdaptable getElement()
org.eclipse.ui.IWorkbenchPropertyPage
getElement
in interface org.eclipse.ui.IWorkbenchPropertyPage
public boolean isPropertyPage()
protected org.eclipse.jface.preference.IPreferenceStore doGetPreferenceStore()
org.eclipse.jface.preference.PreferencePage
This is a framework hook method for subclasses to return a
page-specific preference store. The default implementation
returns null
.
doGetPreferenceStore
in class org.eclipse.jface.preference.PreferencePage
null
if noneprotected java.lang.String getQualifier()
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
org.eclipse.jface.preference.PreferencePage
This framework method must be implemented by concrete subclasses. Any
subclass returning a Composite
object whose Layout
has default margins (for example, a GridLayout
) are expected to
set the margins of this Layout
to 0 pixels.
createContents
in class org.eclipse.jface.preference.FieldEditorPreferencePage
parent
- the parent composite
protected java.lang.String getLanguageName()
protected java.lang.String qualifiedName()
public void createControl(org.eclipse.swt.widgets.Composite parent)
org.eclipse.jface.preference.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 org.eclipse.jface.dialogs.IDialogPage
createControl
in class org.eclipse.jface.preference.PreferencePage
parent
- the parent compositeIDialogPage.createControl(Composite)
protected void addField(org.eclipse.jface.preference.FieldEditor editor)
org.eclipse.jface.preference.FieldEditorPreferencePage
addField
in class org.eclipse.jface.preference.FieldEditorPreferencePage
editor
- the field editorprotected void updateFieldEditors(boolean enabled)
public boolean performOk()
org.eclipse.jface.preference.FieldEditorPreferencePage
PreferencePage
method saves all field editors by
calling FieldEditor.store
. Note that this method
does not save the preference store itself; it just stores the
values back into the preference store.
performOk
in interface org.eclipse.jface.preference.IPreferencePage
performOk
in class org.eclipse.jface.preference.FieldEditorPreferencePage
false
to abort the container's OK
processing and true
to allow the OK to happenFieldEditor.store()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |