org.eclipse.xtext.ui.editor.preferences
Class AbstractPreferencePage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.jface.preference.FieldEditorPreferencePage
org.eclipse.xtext.ui.editor.preferences.AbstractPreferencePage
- All Implemented Interfaces:
- java.util.EventListener, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.preference.IPreferencePage, org.eclipse.jface.util.IPropertyChangeListener, org.eclipse.ui.IWorkbenchPreferencePage, org.eclipse.ui.IWorkbenchPropertyPage
- Direct Known Subclasses:
- LanguageRootPreferencePage, SyntaxColoringPreferencePage
public abstract class AbstractPreferencePage
- extends org.eclipse.jface.preference.FieldEditorPreferencePage
- implements org.eclipse.ui.IWorkbenchPreferencePage, org.eclipse.ui.IWorkbenchPropertyPage
- Author:
- Dennis Hübner - Initial contribution and API
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 |
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 |
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 |
AbstractPreferencePage
public AbstractPreferencePage()
init
public void init(org.eclipse.ui.IWorkbench workbench)
- Specified by:
init
in interface org.eclipse.ui.IWorkbenchPreferencePage
getWorkbench
protected org.eclipse.ui.IWorkbench getWorkbench()
setElement
public void setElement(org.eclipse.core.runtime.IAdaptable element)
- Specified by:
setElement
in interface org.eclipse.ui.IWorkbenchPropertyPage
getElement
public org.eclipse.core.runtime.IAdaptable getElement()
- Specified by:
getElement
in interface org.eclipse.ui.IWorkbenchPropertyPage
isPropertyPage
public boolean isPropertyPage()
doGetPreferenceStore
protected org.eclipse.jface.preference.IPreferenceStore doGetPreferenceStore()
- Overrides:
doGetPreferenceStore
in class org.eclipse.jface.preference.PreferencePage
getQualifier
protected java.lang.String getQualifier()
- Returns:
- the qualifer used to look up the preference node of the
configured preferencesstore
createContents
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createContents
in class org.eclipse.jface.preference.FieldEditorPreferencePage
getLanguageName
protected java.lang.String getLanguageName()
qualifiedName
protected java.lang.String qualifiedName()
- Returns:
- prefix for preference keys
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createControl
in interface org.eclipse.jface.dialogs.IDialogPage
- Overrides:
createControl
in class org.eclipse.jface.preference.PreferencePage
addField
protected void addField(org.eclipse.jface.preference.FieldEditor editor)
- Overrides:
addField
in class org.eclipse.jface.preference.FieldEditorPreferencePage
updateFieldEditors
protected void updateFieldEditors(boolean enabled)
performOk
public boolean performOk()
- Specified by:
performOk
in interface org.eclipse.jface.preference.IPreferencePage
- Overrides:
performOk
in class org.eclipse.jface.preference.FieldEditorPreferencePage