Class ModuleAppPropertyPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.ui.dialogs.PropertyPage
com.iizigo.project.ModuleAppPropertyPage
- All Implemented Interfaces:
EventListener, IDialogPage, IMessageProvider, IPreferencePage, IWorkbenchPropertyPage
The IIZI Module Application property page.
- Author:
- Christopher Mindus
Field Summary
FieldsFields inherited from interface IMessageProvider
ERROR, INFORMATION, NONE, WARNINGConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionprotected ControlcreateContents(Composite parent) voidCalled to process an event.booleanCancels: the values the page was opened with are put back into the LIVE Module App, the instance the module project's settings answer (ModuleProjectSettings.getModuleApp()) and the one the listeners are on.booleanPerforms OK.voidsetVisible(boolean isVisible) Focuses the properties editor and performs a layout.Methods inherited from class PropertyPage
getElement, setElementMethods inherited from class PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, noDefaultButton, okToLeave, performApply, performDefaults, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButtonMethods 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, setMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitleMethods inherited from interface IPreferencePage
computeSize, isValid, okToLeave, setContainer, setSize
Field Details
ID
The ID of this property page.
Constructor Details
ModuleAppPropertyPage
public ModuleAppPropertyPage()Constructor for property page.
Method Details
createContents
- Specified by:
createContentsin classPreferencePage- See Also:
performOk
public boolean performOk()Performs OK.- Specified by:
performOkin interfaceIPreferencePage- Overrides:
performOkin classPreferencePage
performCancel
public boolean performCancel()Cancels: the values the page was opened with are put back into the LIVE Module App, the instance the module project's settings answer (ModuleProjectSettings.getModuleApp()) and the one the listeners are on. The instance is never replaced:ModuleProjectSettingsholds it for the life of the project, so replacing it by the clone of the original (as this method did) disposed of the instance everything reads, and the Designer went on reading the disposed instance with the cancelled values until the project was reloaded (TM-D-5 of order 244). The original clone stays the page's reference of what "unchanged" is, should the dialog stay open.- Specified by:
performCancelin interfaceIPreferencePage- Overrides:
performCancelin classPreferencePage
setVisible
public void setVisible(boolean isVisible) Focuses the properties editor and performs a layout.- Specified by:
setVisiblein interfaceIDialogPage- Overrides:
setVisiblein classDialogPage
onEvent
Called to process an event.- Specified by:
onEventin interfaceEventListener- Parameters:
event- The event.