Class PWAPropertyPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.ui.dialogs.PropertyPage
com.iizigo.pwa.PWAPropertyPage
- All Implemented Interfaces:
EventListener, IDialogPage, IMessageProvider, IPreferencePage, IWorkbenchPropertyPage
The Progressive Web App (PWA) property page: the switch (the
.iiziPWA file), the icons of the installed application and the manifest's category and orientation (CC-PUSH-PWA-PAGES Set I, rulings PX-1, PM-4). When PWA is first switched on the App's icon bitmap is offered as the master icon - only when that asset exists (CC-FIX-PWA-PAGE-PORTS, ruling PW-1: a field is never pre-filled with a file that does not exist); when the page is applied with OK, every icon the module's PWA folder (iiziModule/assets/PWA/) lacks is written into it from the same engine the server uses (PWAIcons.build(PWAIcons.Sources)), never over a file the designer put there (ruling PD-2), and the optional icon fields that were empty then name the files written (ruling PW-2). A line under the editor says beforehand what OK writes and where (PW-1). When the module builds iiziRun (it has a .iiziRun), the files its icon set lacks are written from the same master too (PWAIcons.iiziRunMissing(byte[], Map, Color), order CC-PWA-ICONS-IIZIRUN, ruling I-D-1).The container is edited in a StandalonePageRoot: a root that resolves <Project>:/assets/... references the way the Module project root does (ruling PW-6); the former EditorServerProps root resolved no project name, so every icon reference was "not found" although the file was there.
- 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.booleanPerforms OK: saves the file, writes the icons the folders lack, fills the empty optional fields with the files written and saves again, then says what was written.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
PWAPropertyPage
public PWAPropertyPage()Constructor for Folder property page.
Method Details
createContents
- Specified by:
createContentsin classPreferencePage- See Also:
performOk
public boolean performOk()Performs OK: saves the file, writes the icons the folders lack, fills the empty optional fields with the files written and saves again, then says what was written.- Specified by:
performOkin interfaceIPreferencePage- Overrides:
performOkin classPreferencePage
performCancel
public boolean performCancel()Cancels.- 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.