pl.edu.agh.cast.importer.wizard
Class ImporterWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by pl.edu.agh.cast.importer.wizard.ImporterWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard

public class ImporterWizard
extends org.eclipse.jface.wizard.Wizard

The wizard, which leads the users through an import data process, and which may also include a new template creation.

Author:
AGH CAST Team

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
protected ImporterWizard(IImporterPluginRegistryProvider pluginRegistryProvider, IModelPluginRegistryProvider modelPluginRegistryProvider, IWizardPluginRegistryProvider wizardPluginRegistryProvider)
          The constructor - for test use only.
  ImporterWizard(String projectLocation)
          The default constructor.
 
Method Summary
 void addPages()
          
 boolean canFinish()
          
 AbstractConversionRulesSelectionPage getCurrConversionRulesPage()
          Returns rules page for actual selected model.
 ImporterUtil getImporterUtil()
           
 ImportProcess getImportProcess()
           
 IImportWizardStrategy getWizardStrategy()
           
 WizardUtil getWizardUtil()
           
 void performConversion()
          Performs data conversion with the data and converter previously configured.
 boolean performFinish()
          
 void performParsing()
          Performs data parsing with the data currently configured and the analyzers specified.
 void performTokenization()
          Performs data tokenization with the data currently configured.
 boolean saveDataSet()
          Saves converted data sets using persistence provider.
 void setImportStrategy(IImportWizardStrategy strategy)
          Sets new import strategy.
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImporterWizard

public ImporterWizard(String projectLocation)
The default constructor.

Parameters:
projectLocation - project location

ImporterWizard

protected ImporterWizard(IImporterPluginRegistryProvider pluginRegistryProvider,
                         IModelPluginRegistryProvider modelPluginRegistryProvider,
                         IWizardPluginRegistryProvider wizardPluginRegistryProvider)
The constructor - for test use only.

Parameters:
pluginRegistryProvider - the importer plugin registry provider
modelPluginRegistryProvider - the model plugin registry provider
wizardPluginRegistryProvider - the wizard plugin registry provider
Method Detail

performTokenization

public void performTokenization()
Performs data tokenization with the data currently configured.


performParsing

public void performParsing()
Performs data parsing with the data currently configured and the analyzers specified.


performConversion

public void performConversion()
Performs data conversion with the data and converter previously configured.


saveDataSet

public boolean saveDataSet()
Saves converted data sets using persistence provider.

Returns:
true if data sets have been properly saved; false if any error occurred or user cancel

addPages

public void addPages()

Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
Overrides:
addPages in class org.eclipse.jface.wizard.Wizard
See Also:
Wizard.addPages()

canFinish

public boolean canFinish()

Specified by:
canFinish in interface org.eclipse.jface.wizard.IWizard
Overrides:
canFinish in class org.eclipse.jface.wizard.Wizard
See Also:
Wizard.canFinish()

performFinish

public boolean performFinish()

Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Specified by:
performFinish in class org.eclipse.jface.wizard.Wizard
See Also:
Wizard.performFinish()

setImportStrategy

public void setImportStrategy(IImportWizardStrategy strategy)
Sets new import strategy. When strategy is changed new import process instance is created.

Parameters:
strategy - import strategy to set

getImportProcess

public ImportProcess getImportProcess()

getImporterUtil

public ImporterUtil getImporterUtil()

getWizardUtil

public WizardUtil getWizardUtil()

getCurrConversionRulesPage

public AbstractConversionRulesSelectionPage getCurrConversionRulesPage()
Returns rules page for actual selected model.

Returns:
current conversion rules page

getWizardStrategy

public IImportWizardStrategy getWizardStrategy()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.