Package com.iizigo.setup
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
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
Method Summary
Modifier and TypeMethodDescriptionvoid
addPages()
Adds the required pages.boolean
Checks for OK to finish.void
dispose()
Dispose of wizard.getNextPage
(IWizardPage page) Gets the next page: if no languages, no more...getPreviousPage
(IWizardPage page) Gets the previous page.boolean
TheWizard
implementation of thisIWizard
method does nothing and returnstrue
.boolean
Finishes the dialog.static String
show
(IDesignerLicenseSystem licSys) Shows the wizard the first time if required.Methods inherited from class org.eclipse.jface.wizard.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
Shows the wizard the first time if required.- Parameters:
licSys
- The license system.- Returns:
- Error message, null for for cancel, empty string for OK.
dispose
public void dispose()Dispose of wizard.addPages
public void addPages()Adds the required pages.getNextPage
Gets the next page: if no languages, no more...- Specified by:
getNextPage
in interfaceIWizard
- Overrides:
getNextPage
in classWizard
- Parameters:
page
- current page.- Returns:
- Next page, or null for already on last page.
getPreviousPage
Gets the previous page.- Specified by:
getPreviousPage
in interfaceIWizard
- Overrides:
getPreviousPage
in classWizard
- Parameters:
page
- current page.- Returns:
- Previous page, or null for already on first page.
canFinish
public boolean canFinish()Checks for OK to finish.performCancel
public boolean performCancel()TheWizard
implementation of thisIWizard
method does nothing and returnstrue
. Subclasses should re-implement this method if they need to perform any special cancel processing for their wizard.- Specified by:
performCancel
in interfaceIWizard
- Overrides:
performCancel
in classWizard
performFinish
public boolean performFinish()Finishes the dialog.- Specified by:
performFinish
in interfaceIWizard
- Specified by:
performFinish
in classWizard
- Returns:
- true to indicate the finish request was accepted, and false to indicate that the finish request was refused.