Package com.iizigo
Class InternalDatabasePreferencePage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
com.iizigo.InternalDatabasePreferencePage
- All Implemented Interfaces:
- IValidationMessage,- IDialogPage,- IMessageProvider,- IPreferencePage,- IWorkbenchPreferencePage
public class InternalDatabasePreferencePage extends PreferencePage implements IWorkbenchPreferencePage, IValidationMessage
The Designer page in the Preferences for the Internal Database.
- Author:
- Christopher Mindus
- Field Summary- Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider- ERROR, INFORMATION, NONE, WARNING
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- protected Control- createContents- (Composite parent) Creates the controls for the page.- void- init- (IWorkbench workbench) Initializer from the workbench.- void- onValidate- (boolean isValid) Called when validated.- protected voidApplies the preferences changes.- booleanCancels the preferences page.- protected voidSets the default preferences.- booleanSave the color preference to the preference store.- Methods inherited from class org.eclipse.jface.preference.PreferencePage- applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, noDefaultButton, okToLeave, performHelp, 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.dialogs.IDialogPage- createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible- Methods inherited from interface org.eclipse.jface.preference.IPreferencePage- computeSize, isValid, okToLeave, setContainer, setSize- Methods inherited from interface com.iizigo.validator.IValidationMessage- setMessage
- Constructor Details- InternalDatabasePreferencePagepublic InternalDatabasePreferencePage()Constructor.
 
- Method Details- initInitializer from the workbench.- Specified by:
- initin interface- IWorkbenchPreferencePage
- Parameters:
- workbench- The workbench instance.
 
- createContentsCreates the controls for the page.- Specified by:
- createContentsin class- PreferencePage
- Parameters:
- parent- The parent composite.
- Returns:
- The parent composite making up the page.
 
- performDefaultsprotected void performDefaults()Sets the default preferences.- Overrides:
- performDefaultsin class- PreferencePage
 
- performApplyprotected void performApply()Applies the preferences changes.- Overrides:
- performApplyin class- PreferencePage
 
- performOkpublic boolean performOk()Save the color preference to the preference store.- Specified by:
- performOkin interface- IPreferencePage
- Overrides:
- performOkin class- PreferencePage
 
- performCancelpublic boolean performCancel()Cancels the preferences page.- Specified by:
- performCancelin interface- IPreferencePage
- Overrides:
- performCancelin class- PreferencePage
 
- onValidatepublic void onValidate- (boolean isValid) Called when validated.- Specified by:
- onValidatein interface- IValidationMessage
- Parameters:
- isValid- true if valid, false otherwise.