Class AliasPropertyPage
- All Implemented Interfaces:
IDialogPage, IMessageProvider, IPreferencePage, IWorkbenchPropertyPage
The Alias page for Module projects.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from interface IMessageProvider
ERROR, INFORMATION, NONE, WARNINGConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionprotected StringcheckSelectedElement(Object element) Initializes the page for the selected object if it's of correct type and contents.protected voidcreateContents(Composite composite, int parentWidth, int stdButtonWidth) The real creator.protected voidPerforms special processing when this page's Defaults button has been pressed.protected booleanSave settings.Methods inherited from class StandardPropertyPage
clearChanged, createContents, createControl, performApply, performOk, setChanged, setDefaultsEnabled, updateApplyButtonMethods inherited from class PropertyPage
getElement, setElementMethods inherited from class PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, noDefaultButton, okToLeave, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toStringMethods inherited from class DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisibleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IDialogPage
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisibleMethods inherited from interface IPreferencePage
computeSize, isValid, okToLeave, performCancel, setContainer, setSize
Constructor Details
AliasPropertyPage
public AliasPropertyPage()Constructor for property page.
Method Details
checkSelectedElement
Initializes the page for the selected object if it's of correct type and contents. If not, return an error message.- Specified by:
checkSelectedElementin classStandardPropertyPage- Parameters:
element- The selected element (normally from the Common Navigator).- Returns:
- Error message, or null for OK.
createContents
The real creator. The composite is created with no layout.- Specified by:
createContentsin classStandardPropertyPage- Parameters:
composite- The composite to fill with controls.parentWidth- The parent width.stdButtonWidth- The standard button width (Apply, Defaults).
performDefaults
protected void performDefaults()Performs special processing when this page's Defaults button has been pressed.- Overrides:
performDefaultsin classPreferencePage
saveSettings
protected boolean saveSettings()Save settings. Override to save settings.- Specified by:
saveSettingsin classStandardPropertyPage- Returns:
- false for failure, OK to keep on going.