Revision ed0cb955
Added by Patrick Plitzner almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/owl/OwlTermExportWizard.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.taxeditor.io.e4.out.owl; |
10 | 10 |
|
11 |
import java.io.File; |
|
12 |
|
|
11 | 13 |
import javax.inject.Inject; |
12 | 14 |
import javax.inject.Named; |
13 | 15 |
|
16 |
import org.eclipse.core.runtime.jobs.Job; |
|
14 | 17 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
15 | 18 |
import org.eclipse.e4.core.di.annotations.Optional; |
16 | 19 |
import org.eclipse.e4.ui.services.IServiceConstants; |
17 | 20 |
import org.eclipse.jface.viewers.IStructuredSelection; |
21 |
import org.eclipse.ui.progress.IProgressConstants; |
|
18 | 22 |
|
19 | 23 |
import eu.etaxonomy.cdm.io.descriptive.owl.out.StructureTreeOwlExportConfigurator; |
20 | 24 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
... | ... | |
53 | 57 |
configurator.setFeatureTrees(exportPage.getSelectedTrees()); |
54 | 58 |
configurator.setVocabularyUuids(exportPage.getSelectedVocabularies()); |
55 | 59 |
|
56 |
CdmStore.getExportManager().runMoniteredOperation(configurator, exportPage.getExportDirectory()); |
|
60 |
if(exportPage.getExportDirectory()!=null){ |
|
61 |
// create job |
|
62 |
Job job = CdmStore.getExportManager().createIOServiceJob(configurator, new File(exportPage.getExportDirectory())); |
|
63 |
// configure the job |
|
64 |
job.setProperty(IProgressConstants.KEEP_PROPERTY, true); |
|
65 |
job.setUser(true); |
|
66 |
// schedule job |
|
67 |
job.schedule(); |
|
68 |
} |
|
57 | 69 |
return true; |
58 | 70 |
} |
59 | 71 |
|
Also available in: Unified diff
ref #6774 Fix export invocation