Class PushPropertyPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.ui.dialogs.PropertyPage
com.iizigo.push.PushPropertyPage
- All Implemented Interfaces:
EventListener, IDialogPage, IMessageProvider, IPreferencePage, IWorkbenchPropertyPage
The Push property page for the application.
The two secrets - the VAPID private key and the Firebase service account - are not fields of the page (CC-PUSH-PWA-PAGES, ruling PP-4): they live in this machine's secrets store under the application's context, never in .iiziPush. Below the property editor a "Secrets" group shows, per secret, whether the store holds it - never its value - and offers Generate (a new VAPID pair: the public key into the container, the private key into the store when the page is saved), Import (a downloaded Firebase service-account JSON, checked, into the store when saved; the Project ID filled from it when empty) and Remove (the secret out of the store at once, confirmed). One Undo reverts the container change; the store is not undone, which the page says.
- 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.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
PushPropertyPage
public PushPropertyPage()Constructor for Folder 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.- 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.