/**
* 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.
*/
import java.io.File;
+import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.progress.IProgressConstants;
import eu.etaxonomy.cdm.io.dwca.out.DwcaTaxExportConfigurator;
import eu.etaxonomy.taxeditor.store.CdmStore;
/*
* (non-Javadoc)
- *
+ *
* @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench,
* org.eclipse.jface.viewers.IStructuredSelection)
*/
public void init(IWorkbench workbench, IStructuredSelection selection) {
configurator = DwcaTaxExportConfigurator.NewInstance(null, null, null);
}
-
+
/*
* (non-Javadoc)
- *
+ *
* @see
* eu.etaxonomy.taxeditor.io.wizard.AbstractExportWizard#getConfigurator()
*/
/*
* (non-Javadoc)
- *
+ *
* @see org.eclipse.jface.wizard.Wizard#performFinish()
*/
@Override
configurator.setDestination(new File(urlString));
- CdmStore.getExportManager().run(configurator);
+ Job exportJob = CdmStore.getExportManager().createIOServiceJob(configurator, configurator.getDestination());
+ exportJob.setProperty(IProgressConstants.KEEP_PROPERTY, true);
+ exportJob.setUser(true);
+ // schedule job
+ exportJob.schedule();
return true;
}
/*
* (non-Javadoc)
- *
+ *
* @see eu.etaxonomy.taxeditor.io.wizard.AbstractExportWizard#addPages()
*/
@Override