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

java.lang.Object
  extended by pl.edu.agh.cast.data.ui.importer.wizard.ConversionWithProgressMonitor
All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableWithProgress

public class ConversionWithProgressMonitor
extends Object
implements org.eclipse.jface.operation.IRunnableWithProgress

Embed conversion operation which can be monitored by ProgressMonitorDialog. Conversion operation converts TabularData to IDataSet.

Author:
AGH CAST Team

Field Summary
protected  TabularData data
          Data in tabular form, which is to be converted to data set.
protected  IDataSet dataSet
          Data set.
protected  BrokenDataInfo errors
          Statistics after data validation, containing information about all errors.
protected  ImportPage importPage
          Import page of the import wizard.
protected  String path
          Path to data file that is to be imported.
protected  String projectName
          Name of the project.
protected  Template template
          Template, according to which the conversion is done.
protected  ValidationPage validationPage
          Validation page of the import wizard.
 
Constructor Summary
ConversionWithProgressMonitor(org.eclipse.core.resources.IProject project, ImportPage importPage, ValidationPage validationPage, FileRawDataLogger importLogger)
          The default constructor.
 
Method Summary
 IDataSet getDataSet()
           
 IModel getModel()
           
 org.eclipse.core.resources.IProject getProject()
           
 boolean getStatus()
           
 void run(org.eclipse.core.runtime.IProgressMonitor monitor)
          
 void setModelUtil(ModelUtil util)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

importPage

protected ImportPage importPage
Import page of the import wizard.


validationPage

protected ValidationPage validationPage
Validation page of the import wizard.


dataSet

protected IDataSet dataSet
Data set.


projectName

protected String projectName
Name of the project.


path

protected String path
Path to data file that is to be imported.


template

protected Template template
Template, according to which the conversion is done.


data

protected TabularData data
Data in tabular form, which is to be converted to data set.


errors

protected BrokenDataInfo errors
Statistics after data validation, containing information about all errors.

Constructor Detail

ConversionWithProgressMonitor

public ConversionWithProgressMonitor(org.eclipse.core.resources.IProject project,
                                     ImportPage importPage,
                                     ValidationPage validationPage,
                                     FileRawDataLogger importLogger)
The default constructor.

Parameters:
project - the project resource
importPage - the import wizard page
validationPage - the validation wizard page
importLogger - the import logger
Method Detail

run

public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
         throws InvocationTargetException,
                InterruptedException

Specified by:
run in interface org.eclipse.jface.operation.IRunnableWithProgress
Throws:
InvocationTargetException
InterruptedException
See Also:
IRunnableWithProgress.run(org.eclipse.core.runtime.IProgressMonitor)

getProject

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

getModel

public IModel getModel()

getStatus

public boolean getStatus()

getDataSet

public IDataSet getDataSet()

setModelUtil

public void setModelUtil(ModelUtil util)


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