Package com.iizigo.setup
Class SetupWizard
- java.lang.Object
- org.eclipse.jface.wizard.Wizard
- com.iizigo.setup.SetupWizard
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider,org.eclipse.jface.wizard.IWizard
public class SetupWizard extends org.eclipse.jface.wizard.WizardWizard 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 Modifier and Type Field Description static booleanDEBUG_ALWAYS_OKDEBUG enable always OK.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPages()Adds the required pages.booleancanFinish()Checks for OK to finish.voiddispose()Dispose of wizard.org.eclipse.jface.wizard.IWizardPagegetNextPage(org.eclipse.jface.wizard.IWizardPage page)Gets the next page: if no languages, no more...org.eclipse.jface.wizard.IWizardPagegetPreviousPage(org.eclipse.jface.wizard.IWizardPage page)Gets the previous page.booleanperformCancel()TheWizardimplementation of thisIWizardmethod does nothing and returnstrue.booleanperformFinish()Finishes the dialog.static java.lang.Stringshow(IDesignerLicenseSystem licSys)Shows the wizard the first time if required.Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, createPageControls, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
Method Detail
show
public static java.lang.String show(IDesignerLicenseSystem licSys)
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.- Specified by:
disposein interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
disposein classorg.eclipse.jface.wizard.Wizard
addPages
public void addPages()
Adds the required pages.- Specified by:
addPagesin interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
addPagesin classorg.eclipse.jface.wizard.Wizard
getNextPage
public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
Gets the next page: if no languages, no more...- Specified by:
getNextPagein interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
getNextPagein classorg.eclipse.jface.wizard.Wizard- Parameters:
page- current page.- Returns:
- Next page, or null for already on last page.
getPreviousPage
public org.eclipse.jface.wizard.IWizardPage getPreviousPage(org.eclipse.jface.wizard.IWizardPage page)
Gets the previous page.- Specified by:
getPreviousPagein interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
getPreviousPagein classorg.eclipse.jface.wizard.Wizard- Parameters:
page- current page.- Returns:
- Previous page, or null for already on first page.
canFinish
public boolean canFinish()
Checks for OK to finish.- Specified by:
canFinishin interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
canFinishin classorg.eclipse.jface.wizard.Wizard- Returns:
- true for OK to finish, false if not OK.
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 interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
performCancelin classorg.eclipse.jface.wizard.Wizard
performFinish
public boolean performFinish()
Finishes the dialog.- Specified by:
performFinishin interfaceorg.eclipse.jface.wizard.IWizard- Specified by:
performFinishin classorg.eclipse.jface.wizard.Wizard- Returns:
- true to indicate the finish request was accepted, and false to indicate that the finish request was refused.