|
|||||||||
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.xtext.builder.preferences.PropertyAndPreferencePage
public abstract class PropertyAndPreferencePage
Initially copied from Jdt.
Field Summary | |
---|---|
static java.lang.String |
DATA_NO_LINK
|
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
PropertyAndPreferencePage()
|
Method Summary | |
---|---|
void |
applyData(java.lang.Object data)
Applies the given data 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. |
protected org.eclipse.swt.widgets.Label |
createDescriptionLabel(org.eclipse.swt.widgets.Composite parent)
Creates and returns an SWT label under the given composite. |
protected abstract org.eclipse.swt.widgets.Control |
createPreferenceContent(org.eclipse.swt.widgets.Composite composite,
org.eclipse.jface.preference.IPreferencePageContainer preferencePageContainer)
|
protected void |
doStatusChanged()
|
protected void |
enablePreferenceContent(boolean enable)
|
protected void |
enableProjectSpecificSettings(boolean useProjectSpecificSettings)
|
protected java.util.Map<java.lang.Object,java.lang.Object> |
getData()
|
org.eclipse.core.runtime.IAdaptable |
getElement()
Returns the object that owns the properties shown in this page. |
protected IStatusChangeListener |
getNewStatusChangedListener()
|
protected org.eclipse.core.runtime.IStatus |
getPreferenceContentStatus()
|
protected abstract java.lang.String |
getPreferencePageID()
|
protected org.eclipse.core.resources.IProject |
getProject()
|
protected abstract java.lang.String |
getPropertyPageID()
|
protected org.eclipse.ui.preferences.IWorkingCopyManager |
getWorkingCopyManager()
|
protected abstract boolean |
hasProjectSpecificOptions(org.eclipse.core.resources.IProject project)
|
void |
init(org.eclipse.ui.IWorkbench workbench)
Initializes this preference page for the given workbench. |
protected boolean |
isProjectPreferencePage()
|
protected boolean |
offerLink()
|
protected void |
openProjectProperties(org.eclipse.core.resources.IProject project,
java.lang.Object data)
|
protected void |
openWorkspacePreferences(java.lang.Object data)
|
protected void |
performDefaults()
Performs special processing when this page's Defaults button has been pressed. |
void |
setElement(org.eclipse.core.runtime.IAdaptable element)
Sets the object that owns the properties shown in this page. |
protected void |
setPreferenceContentStatus(org.eclipse.core.runtime.IStatus status)
|
protected boolean |
supportsProjectSpecificOptions()
|
protected boolean |
useProjectSettings()
|
Methods inherited from class org.eclipse.jface.preference.PreferencePage |
---|
applyDialogFont, computeSize, contributeButtons, createControl, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, performOk, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
---|
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible |
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, performOk, setContainer, setSize |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
---|
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
Field Detail |
---|
public static final java.lang.String DATA_NO_LINK
Constructor Detail |
---|
public PropertyAndPreferencePage()
Method Detail |
---|
protected abstract org.eclipse.swt.widgets.Control createPreferenceContent(org.eclipse.swt.widgets.Composite composite, org.eclipse.jface.preference.IPreferencePageContainer preferencePageContainer)
protected abstract boolean hasProjectSpecificOptions(org.eclipse.core.resources.IProject project)
protected abstract java.lang.String getPreferencePageID()
protected abstract java.lang.String getPropertyPageID()
protected boolean supportsProjectSpecificOptions()
protected boolean offerLink()
protected org.eclipse.swt.widgets.Label createDescriptionLabel(org.eclipse.swt.widgets.Composite parent)
org.eclipse.jface.preference.PreferencePage
createDescriptionLabel
in class org.eclipse.jface.preference.PreferencePage
parent
- the parent composite
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.PreferencePage
parent
- the parent composite
protected boolean useProjectSettings()
protected boolean isProjectPreferencePage()
protected org.eclipse.core.resources.IProject getProject()
protected final void openWorkspacePreferences(java.lang.Object data)
protected final void openProjectProperties(org.eclipse.core.resources.IProject project, java.lang.Object data)
protected void enableProjectSpecificSettings(boolean useProjectSpecificSettings)
protected void setPreferenceContentStatus(org.eclipse.core.runtime.IStatus status)
protected IStatusChangeListener getNewStatusChangedListener()
protected org.eclipse.core.runtime.IStatus getPreferenceContentStatus()
protected void doStatusChanged()
protected void enablePreferenceContent(boolean enable)
protected void performDefaults()
org.eclipse.jface.preference.PreferencePage
This is a framework hook method for subclasses to do special things when
the Defaults button has been pressed.
Subclasses may override, but should call super.performDefaults
.
performDefaults
in class org.eclipse.jface.preference.PreferencePage
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 workbenchpublic org.eclipse.core.runtime.IAdaptable getElement()
org.eclipse.ui.IWorkbenchPropertyPage
getElement
in interface org.eclipse.ui.IWorkbenchPropertyPage
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 void applyData(java.lang.Object data)
org.eclipse.jface.preference.PreferencePage
It is up to the subclasses to specify the contract and the data format. The contract is not guaranteed if the subclass is in an internal package.
Note: The implementation must silently ignore all unknown data.
The default implementation does nothing.
applyData
in class org.eclipse.jface.preference.PreferencePage
data
- the data as specified by the subclassprotected java.util.Map<java.lang.Object,java.lang.Object> getData()
protected org.eclipse.ui.preferences.IWorkingCopyManager getWorkingCopyManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |