|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.wizard.Wizard
pl.edu.agh.cast.data.ui.importer.wizard.ImportWizard
public class ImportWizard
The wizard which leads the users through an import data process.
Field Summary | |
---|---|
protected IDataSet |
dataSet
Data set into which the data will be converted during the import. |
protected FileRawDataLogger |
importLogger
Observer which logs import events to file. |
protected ImportPage |
importPage
First page of the import wizard: import page. |
protected boolean |
isPreprocessingActive
Flag which indicates if the preprocessing page should be shown. |
protected IEntity[] |
mainEntities
Main entities of the imported data. |
protected MainEntityPage |
mainEntityPage
Fourth page of the import wizard: main entities page. |
protected IModel |
model
Model of the imported data. |
protected String |
path
Path to data file that is to be imported. |
protected PreprocessingPage |
preprocessingPage
Third page of the import wizard: preprocessing page. |
protected org.eclipse.core.resources.IProject |
project
The project the object belongs to. |
protected boolean |
status
Status of the import wizard. |
protected Template |
template
Import template. |
protected ValidationPage |
validationPage
Second page of the import wizard: validation page. |
Fields inherited from class org.eclipse.jface.wizard.Wizard |
---|
DEFAULT_IMAGE |
Constructor Summary | |
---|---|
ImportWizard(org.eclipse.core.resources.IProject project)
The default constructor. |
Method Summary | |
---|---|
void |
addPages()
|
List<? extends IPreprocessingItem> |
analyzeDataInPreprocessing(TabularData data,
Template tmpl,
org.eclipse.core.runtime.IProgressMonitor monitor)
Analyzes the specified input data and returns a list of possible changes types. |
void |
applyPreprocessingChanges(List<? extends IPreprocessingItem> changes,
org.eclipse.core.runtime.IProgressMonitor monitor)
Apply the specified changes to current preprocessor. |
boolean |
canFinish()
|
MainEntityPage |
getMainEntitiesPage()
|
org.eclipse.jface.wizard.IWizardPage |
getNextPage(org.eclipse.jface.wizard.IWizardPage currentPage)
|
String |
getPreprocessingDescription()
Returns the preprocessing description, or an empty string if the description was null . |
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()
Returns the isPreprocessingActive value. |
boolean |
performFinish()
|
void |
performFirstPartOfConversion()
Performs the first part of conversion of tabular data into IDataSet . |
void |
setModelUtil(ModelUtil util)
|
void |
setPreprocessingActive(boolean flag)
|
Map<DataCell,String> |
showPreprocessingPreview(List<? extends IPreprocessingItem> items)
Returns proposed changes for the preprocessed items or null if either the items or the preprocessor
were undefined. |
void |
undoPreprecessingChanges(List<? extends IPreprocessingItem> changes,
org.eclipse.core.runtime.IProgressMonitor monitor)
Undo the specified changes for current preprocessor (only if the changes were applied before). |
void |
validateData(TabularData data,
Template tmpl,
org.eclipse.core.runtime.IProgressMonitor monitor)
Validates the specified data, according to the specified template. |
void |
validateRow(BrokenDataInfo errors,
DataRow row)
Validates the specified row according to the mapping of the current template. |
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 |
---|
protected ImportPage importPage
protected ValidationPage validationPage
protected PreprocessingPage preprocessingPage
protected MainEntityPage mainEntityPage
protected boolean isPreprocessingActive
protected org.eclipse.core.resources.IProject project
protected FileRawDataLogger importLogger
protected String path
protected Template template
protected IModel model
protected boolean status
protected IDataSet dataSet
protected IEntity[] mainEntities
Constructor Detail |
---|
public ImportWizard(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
project
- the project the object belongs to
org.eclipse.core.runtime.CoreException
Method Detail |
---|
public void performFirstPartOfConversion()
IDataSet
.
public void validateRow(BrokenDataInfo errors, DataRow row)
errors
- the errors informationrow
- the row to validatepublic boolean isPreprocessingActive()
isPreprocessingActive
value.
true
if preprocessor is loaded and it has returned not empty result; false
otherwisepublic List<? extends IPreprocessingItem> analyzeDataInPreprocessing(TabularData data, Template tmpl, org.eclipse.core.runtime.IProgressMonitor monitor)
data
- the data to analyzetmpl
- the templatemonitor
- the progress monitor
public void applyPreprocessingChanges(List<? extends IPreprocessingItem> changes, org.eclipse.core.runtime.IProgressMonitor monitor)
changes
- the preprocessing changesmonitor
- the progress monitorpublic void undoPreprecessingChanges(List<? extends IPreprocessingItem> changes, org.eclipse.core.runtime.IProgressMonitor monitor)
changes
- the preprocessing changesmonitor
- the progress monitorpublic Map<DataCell,String> showPreprocessingPreview(List<? extends IPreprocessingItem> items)
null
if either the items or the preprocessor
were undefined.
items
- the preprocessed items
null
public String getPreprocessingDescription()
null
.
public void validateData(TabularData data, Template tmpl, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
data
- the data to validatetmpl
- the templatemonitor
- the progress monitor
org.eclipse.core.runtime.CoreException
public void addPages()
addPages
in interface org.eclipse.jface.wizard.IWizard
addPages
in class org.eclipse.jface.wizard.Wizard
Wizard.addPages()
public boolean canFinish()
canFinish
in interface org.eclipse.jface.wizard.IWizard
canFinish
in class org.eclipse.jface.wizard.Wizard
Wizard.canFinish()
public boolean performFinish()
performFinish
in interface org.eclipse.jface.wizard.IWizard
performFinish
in class org.eclipse.jface.wizard.Wizard
Wizard.performFinish()
public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage currentPage)
getNextPage
in interface org.eclipse.jface.wizard.IWizard
getNextPage
in class org.eclipse.jface.wizard.Wizard
Wizard.getNextPage(org.eclipse.jface.wizard.IWizardPage)
public org.eclipse.jface.wizard.IWizardPage getPreviousPage(org.eclipse.jface.wizard.IWizardPage currentPage)
getPreviousPage
in interface org.eclipse.jface.wizard.IWizard
getPreviousPage
in class org.eclipse.jface.wizard.Wizard
Wizard.getPreviousPage(org.eclipse.jface.wizard.IWizardPage)
public ValidationPage getValidationPage()
public PreprocessingPage getPreprocessingPage()
public MainEntityPage getMainEntitiesPage()
public org.eclipse.core.resources.IProject getProject()
public IImportPreprocessor getPreprocessor()
public void setPreprocessingActive(boolean flag)
public void setModelUtil(ModelUtil util)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |