|
|||||||||
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.xtext.ui.editor.preferences.fields.AbstractDetailsPart
public abstract class AbstractDetailsPart
Field Summary | |
---|---|
protected org.eclipse.jface.preference.PreferenceStore |
internalStore
|
protected org.eclipse.jface.preference.IPreferenceStore |
masterPreferenceStore
|
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 | |
---|---|
AbstractDetailsPart(org.eclipse.jface.preference.IPreferenceStore masterPreferenceStore)
|
Method Summary | |
---|---|
protected void |
addField(org.eclipse.jface.preference.FieldEditor editor)
Adds the given field editor to this page. |
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 abstract void |
createFieldEditors()
Creates the page's field editors. |
protected org.eclipse.jface.preference.IPreferenceStore |
doGetPreferenceStore()
Returns the preference store of this preference page. |
protected java.lang.String |
getPreferencePrefix()
|
protected void |
load(java.lang.String preferencePrefix)
|
protected void |
loadDefaults(java.lang.String preferencePrefix)
|
boolean |
performOk()
The field editor preference page implementation of this PreferencePage method saves all field editors by
calling FieldEditor.store . |
void |
propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
The field editor preference page implementation of this IPreferencePage
(and IPropertyChangeListener ) method intercepts IS_VALID
events but passes other events on to its superclass. |
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage |
---|
adjustGridLayout, applyFont, checkState, createContents, dispose, getFieldEditorParent, initialize, performDefaults, 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.dialogs.IDialogPage |
---|
getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, setDescription, setImageDescriptor |
Field Detail |
---|
protected org.eclipse.jface.preference.IPreferenceStore masterPreferenceStore
protected org.eclipse.jface.preference.PreferenceStore internalStore
Constructor Detail |
---|
public AbstractDetailsPart(org.eclipse.jface.preference.IPreferenceStore masterPreferenceStore)
Method Detail |
---|
protected final 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 final 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 final void load(java.lang.String preferencePrefix)
protected final void loadDefaults(java.lang.String preferencePrefix)
public final 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()
public final 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)
public final void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
org.eclipse.jface.preference.FieldEditorPreferencePage
IPreferencePage
(and IPropertyChangeListener
) method intercepts IS_VALID
events but passes other events on to its superclass.
propertyChange
in interface org.eclipse.jface.util.IPropertyChangeListener
propertyChange
in class org.eclipse.jface.preference.FieldEditorPreferencePage
event
- the property change event object describing which property
changed and howprotected abstract void createFieldEditors()
org.eclipse.jface.preference.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 org.eclipse.jface.preference.FieldEditorPreferencePage
protected final java.lang.String getPreferencePrefix()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |