// $Id$
/**
* Copyright (C) 2007 EDIT
- * European Distributed Institute of Taxonomy
+ * European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
- *
+ *
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
* <p>
* Abstract AbstractIOHandler class.
* </p>
- *
+ *
* @author n.hoffmann
* @created Sep 11, 2009
* @version 1.0
* <p>
* Constructor for AbstractIOHandler.
* </p>
- *
+ *
* @param applicationController
* a
* {@link eu.etaxonomy.cdm.api.application.CdmApplicationController}
/**
* Starts the IO process
- *
+ *
* @param configurator
* a CONFIGURATOR object.
*/
public void run(final CONFIGURATOR configurator) {
- // create job
- Job job = createIOJob(configurator);
- // configure the job
- job.setProperty(IProgressConstants.KEEP_PROPERTY, true);
- job.setUser(true);
- // schedule job
- job.schedule();
+ // create job
+ Job job = createIOJob(configurator);
+ run(job);
+ }
+ public void run(Job job) {
+ // configure the job
+ job.setProperty(IProgressConstants.KEEP_PROPERTY, true);
+ job.setUser(true);
+ // schedule job
+ job.schedule();
}
/**
* <p>
* createIOJob
* </p>
- *
+ *
* @param configurator
* a CONFIGURATOR object.
* @return a {@link org.eclipse.core.runtime.jobs.Job} object.
*/
protected abstract Job createIOJob(CONFIGURATOR configurator);
+
}