Revision 597c113d
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/csv/print/CsvPrintExportWizardE4.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import javax.inject.Inject; |
6 | 6 |
|
7 |
import org.eclipse.core.runtime.jobs.Job; |
|
8 | 7 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
9 |
import org.eclipse.ui.progress.IProgressConstants; |
|
10 | 8 |
|
11 | 9 |
import eu.etaxonomy.cdm.filter.TaxonNodeFilter; |
12 | 10 |
import eu.etaxonomy.cdm.io.common.ExportResultType; |
... | ... | |
55 | 53 |
configurator.setTaxonNodeFilter(TaxonNodeFilter.NewClassificationInstance(page.getSelectedClassificationUUID())); |
56 | 54 |
configurator.setResultType(ExportResultType.BYTE_ARRAY); |
57 | 55 |
// create job |
58 |
Job job = CdmStore.getExportManager().createIOServiceJob(configurator, new File(urlString)); |
|
59 |
// configure the job |
|
60 |
job.setProperty(IProgressConstants.KEEP_PROPERTY, true); |
|
61 |
job.setUser(true); |
|
62 |
// schedule job |
|
63 |
job.schedule(); |
|
64 |
|
|
56 |
CdmStore.getExportManager().runMoniteredOperation(configurator, urlString); |
|
65 | 57 |
return true; |
66 | 58 |
} |
67 | 59 |
|
Also available in: Unified diff
csv print also should use monitored operation