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

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

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

Embed import operation which can be monitored by ProgressMonitorDialog. Import operation reads data from file (according to specified IDataLoader) and creates TabularData and statistics (if IDataLoader is an instance of DataLoaderWithStatistics)

Author:
AGH CAST Team

Field Summary
protected  Template template
          Import template.
protected  ImportWizard wizard
          Import wizard.
 
Constructor Summary
ImportWithProgressMonitor(String path, Template template, long rowsLimit, ImportWizard wizard, FileRawDataLogger importLogger)
          The default constructor.
 
Method Summary
 boolean isLoadPreprocessingPage()
           
 void run(org.eclipse.core.runtime.IProgressMonitor monitor)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

template

protected Template template
Import template.


wizard

protected ImportWizard wizard
Import wizard.

Constructor Detail

ImportWithProgressMonitor

public ImportWithProgressMonitor(String path,
                                 Template template,
                                 long rowsLimit,
                                 ImportWizard wizard,
                                 FileRawDataLogger importLogger)
The default constructor.

Parameters:
path - the path to file containing the data
template - the template
rowsLimit - the limit of rows
wizard - the import wizard
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)

isLoadPreprocessingPage

public boolean isLoadPreprocessingPage()


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