pl.edu.agh.cast.data.ui.importer.wizard
Class ImportWizard

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

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

The wizard which leads user through import data process.

Author:
Kamil Pietak (kamil.pietak@gmail.com)

Field Summary
protected  pl.edu.agh.cast.model.base.IDataSet _dataSet
           
protected  FileRawDataLogger _importLogger
           
protected  ImportPage _importPage
           
protected  boolean _isPreprocessingActive
           
protected static org.apache.log4j.Logger _log
           
protected  pl.edu.agh.cast.model.base.IEntity[] _mainEntities
           
protected  MainEntityPage _mainEntityPage
           
protected  pl.edu.agh.cast.model.base.IModel _model
           
protected  java.lang.String _path
           
protected  PreprocessingPage _preprocessingPage
           
protected  org.eclipse.core.resources.IProject _project
           
protected  boolean _status
           
protected  Template _template
           
protected  ValidationPage _validationPage
           
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
ImportWizard(org.eclipse.core.resources.IProject project)
           
 
Method Summary
 void addPages()
           
 java.util.List<? extends IPreprocessingItem> analyzeDataInPreprocessing(pl.edu.agh.cast.rawdata.TabularData data, Template template, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void applyPreprocessingChanges(java.util.List<? extends IPreprocessingItem> changes, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 boolean canFinish()
           
 MainEntityPage getMainEntitiesPage()
           
 org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage currentPage)
           
 java.lang.String getPreprocessingDescription()
           
 PreprocessingPage getPreprocessingPage()
           
 IImportPreprocessor getPreprocessor()
           
 org.eclipse.jface.wizard.IWizardPage getPreviousPage(org.eclipse.jface.wizard.IWizardPage currentPage)
           
 org.eclipse.core.resources.IProject getProject()
           
 ValidationPage getValidationPage()
           
 boolean isPreprocessingActive()
           
 boolean performFinish()
           
 void performFirstPartOfConversion()
           
 void setPreprocessingActive(boolean flag)
           
 java.util.Map<DataCell,java.lang.String> showPreprocessingPreview(java.util.List<? extends IPreprocessingItem> items)
           
 void undoPreprecessingChanges(java.util.List<? extends IPreprocessingItem> changes, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void validateData(pl.edu.agh.cast.rawdata.TabularData data, Template template, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void validateRow(pl.edu.agh.cast.rawdata.stat.BrokenDataInfo errors, pl.edu.agh.cast.rawdata.DataRow row)
           
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, 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
 

Field Detail

_log

protected static final org.apache.log4j.Logger _log

_importPage

protected ImportPage _importPage

_validationPage

protected ValidationPage _validationPage

_preprocessingPage

protected PreprocessingPage _preprocessingPage

_mainEntityPage

protected MainEntityPage _mainEntityPage

_isPreprocessingActive

protected boolean _isPreprocessingActive

_project

protected org.eclipse.core.resources.IProject _project

_importLogger

protected FileRawDataLogger _importLogger

_path

protected java.lang.String _path

_template

protected Template _template

_model

protected pl.edu.agh.cast.model.base.IModel _model

_status

protected boolean _status

_dataSet

protected pl.edu.agh.cast.model.base.IDataSet _dataSet

_mainEntities

protected pl.edu.agh.cast.model.base.IEntity[] _mainEntities
Constructor Detail

ImportWizard

public ImportWizard(org.eclipse.core.resources.IProject project)
             throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException
Method Detail

addPages

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

canFinish

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

performFirstPartOfConversion

public void performFirstPartOfConversion()

performFinish

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

getNextPage

public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage currentPage)
Specified by:
getNextPage in interface org.eclipse.jface.wizard.IWizard
Overrides:
getNextPage in class org.eclipse.jface.wizard.Wizard

getPreviousPage

public org.eclipse.jface.wizard.IWizardPage getPreviousPage(org.eclipse.jface.wizard.IWizardPage currentPage)
Specified by:
getPreviousPage in interface org.eclipse.jface.wizard.IWizard
Overrides:
getPreviousPage in class org.eclipse.jface.wizard.Wizard

getValidationPage

public ValidationPage getValidationPage()

getPreprocessingPage

public PreprocessingPage getPreprocessingPage()

getMainEntitiesPage

public MainEntityPage getMainEntitiesPage()

validateRow

public void validateRow(pl.edu.agh.cast.rawdata.stat.BrokenDataInfo errors,
                        pl.edu.agh.cast.rawdata.DataRow row)

getProject

public org.eclipse.core.resources.IProject getProject()

getPreprocessor

public IImportPreprocessor getPreprocessor()

setPreprocessingActive

public void setPreprocessingActive(boolean flag)

isPreprocessingActive

public boolean isPreprocessingActive()
Returns:
true if preprocessor is loaded and it has returned not empty result; false otherwise

analyzeDataInPreprocessing

public java.util.List<? extends IPreprocessingItem> analyzeDataInPreprocessing(pl.edu.agh.cast.rawdata.TabularData data,
                                                                               Template template,
                                                                               org.eclipse.core.runtime.IProgressMonitor monitor)

applyPreprocessingChanges

public void applyPreprocessingChanges(java.util.List<? extends IPreprocessingItem> changes,
                                      org.eclipse.core.runtime.IProgressMonitor monitor)

undoPreprecessingChanges

public void undoPreprecessingChanges(java.util.List<? extends IPreprocessingItem> changes,
                                     org.eclipse.core.runtime.IProgressMonitor monitor)

showPreprocessingPreview

public java.util.Map<DataCell,java.lang.String> showPreprocessingPreview(java.util.List<? extends IPreprocessingItem> items)

getPreprocessingDescription

public java.lang.String getPreprocessingDescription()

validateData

public void validateData(pl.edu.agh.cast.rawdata.TabularData data,
                         Template template,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.