public class ImportWizard extends ARXWizard<ImportConfiguration>
ImportWizardPageSource
for details about which source types
are supported and to the appropriate page(s) itself for more details about a
specific source type.Constructor and Description |
---|
ImportWizard(Controller controller,
Model model)
Creates a new data import wizard and sets the window title.
|
Modifier and Type | Method and Description |
---|---|
void |
addPages()
Adds all of the available pages to the wizard.
|
boolean |
canFinish()
Determines when the wizard should be finishable
The wizard can only be finished on the
preview page . |
org.eclipse.jface.wizard.IWizardPage |
getNextPage(org.eclipse.jface.wizard.IWizardPage currentPage)
Handles the correct ordering of wizard pages
This method makes sure that the correct page is shown once the user hits
the "next" button.
|
ImportConfiguration |
getResult()
Returns a reference to DataSourceConfiguration
The wizard will built an appropriate
ImportConfiguration object once it
is about to finish performFinish() . |
boolean |
performCancel()
Cancel pressed.
|
boolean |
performFinish()
Gets executed once the wizard is about to finish
This will build an appropriate
ImportConfiguration object, depending
upon the source type and the
choices the user made during the process of the wizard. |
addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, setContainer
public ImportWizard(Controller controller, Model model)
controller
- Reference to controllermodel
- Reference to modelpublic void addPages()
addPages
in interface org.eclipse.jface.wizard.IWizard
addPages
in class org.eclipse.jface.wizard.Wizard
public boolean canFinish()
preview page
.
This makes sure that the user is signs off on the settings previously
made.canFinish
in interface org.eclipse.jface.wizard.IWizard
canFinish
in class org.eclipse.jface.wizard.Wizard
#performFinish()}
public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage currentPage)
currentPage
and the
selected sourceType
.getNextPage
in interface org.eclipse.jface.wizard.IWizard
getNextPage
in class org.eclipse.jface.wizard.Wizard
currentPage
- The page that is currently being shownpublic ImportConfiguration getResult()
ImportConfiguration
object once it
is about to finish performFinish()
. This object can then be
retrieved using this method.getResult
in class ARXWizard<ImportConfiguration>
configuration
The resulting data source configurationpublic boolean performCancel()
performCancel
in interface org.eclipse.jface.wizard.IWizard
performCancel
in class org.eclipse.jface.wizard.Wizard
public boolean performFinish()
ImportConfiguration
object, depending
upon the source type
and the
choices the user made during the process of the wizard.
configuration
will hold a reference of the object. This can be
retrieved later on by #getResultingConfiguration()
.performFinish
in interface org.eclipse.jface.wizard.IWizard
performFinish
in class ARXWizard<ImportConfiguration>
#getResultingConfiguration()}