Class SetupWizard
java.lang.Object
org.eclipse.jface.wizard.Wizard
com.iizigo.setup.SetupWizard
- All Implemented Interfaces:
IShellProvider, IWizard
Wizard used when a UI component is about to be added. This wizard provides a mechanism to pop-up a dialog box so the user can fill in the name of the component, VS connections, etc.
- Author:
- Christopher Mindus
Field Summary
FieldsFields inherited from class Wizard
DEFAULT_IMAGEMethod Summary
Modifier and TypeMethodDescriptionvoidaddPages()Adds the required pages.booleanChecks for OK to finish.voiddispose()Dispose of wizard.getNextPage(IWizardPage page) Gets the next page: if no languages, no more...getPreviousPage(IWizardPage page) Gets the previous page.booleanTheWizardimplementation of thisIWizardmethod does nothing and returnstrue.booleanFinishes the dialog.static Stringshow(IDesignerLicenseSystem licSys) The license gate of iiziGo (order B-5e): validates the installation's license at the start and shows whatDesignerLicenseGatedecides - the setup wizard for an installation that is not registered, the trial banner with the days left, the warning of a license that expired and could not be refreshed, or nothing - and returns the reason when the IIZI functions must stay disabled (a revoked or deactivated installation, a trial or a validity that ended, a canceled registration).Methods inherited from class Wizard
addPage, createPageControls, getContainer, getDefaultPageImage, getDialogSettings, getMinimumWizardSize, getPage, getPageCount, getPages, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
Field Details
DEBUG_ALWAYS_OK
public static final boolean DEBUG_ALWAYS_OKDEBUG enable always OK.
Method Details
show
The license gate of iiziGo (order B-5e): validates the installation's license at the start and shows whatDesignerLicenseGatedecides - the setup wizard for an installation that is not registered, the trial banner with the days left, the warning of a license that expired and could not be refreshed, or nothing - and returns the reason when the IIZI functions must stay disabled (a revoked or deactivated installation, a trial or a validity that ended, a canceled registration).The gate does not apply, and nothing is validated or shown, where the bypass of
Startup.setErrorlets a start go on without a license: no license system, a reactor build, a test harness, a development build without a license server (DesignerLicenseGate.applies(boolean, boolean, String, String, boolean)). Such a start never meets the wizard.Called from the start-up thread, never from the SWT thread: the wait for the license server must not hold the user interface.
- Parameters:
licSys- The license system, null when it failed to load and the start went on.- Returns:
- The reason why the IIZI functions stay disabled, or an empty string to go on.
dispose
addPages
getNextPage
Gets the next page: if no languages, no more...- Specified by:
getNextPagein interfaceIWizard- Overrides:
getNextPagein classWizard- Parameters:
page- current page.- Returns:
- Next page, or null for already on last page.
getPreviousPage
Gets the previous page.- Specified by:
getPreviousPagein interfaceIWizard- Overrides:
getPreviousPagein classWizard- Parameters:
page- current page.- Returns:
- Previous page, or null for already on first page.
canFinish
performCancel
public boolean performCancel()TheWizardimplementation of thisIWizardmethod does nothing and returnstrue. Subclasses should re-implement this method if they need to perform any special cancel processing for their wizard.- Specified by:
performCancelin interfaceIWizard- Overrides:
performCancelin classWizard
performFinish
public boolean performFinish()Finishes the dialog.- Specified by:
performFinishin interfaceIWizard- Specified by:
performFinishin classWizard- Returns:
- true to indicate the finish request was accepted, and false to indicate that the finish request was refused.