Revision f12ac52e
Added by Katja Luther about 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExcelNormalExplicitTaxaImportWizard.java | ||
---|---|---|
13 | 13 |
import java.io.FileInputStream; |
14 | 14 |
import java.io.FileNotFoundException; |
15 | 15 |
import java.net.URI; |
16 |
import org.apache.log4j.Logger; |
|
17 | 16 |
|
17 |
import org.apache.log4j.Logger; |
|
18 | 18 |
import org.eclipse.core.runtime.jobs.Job; |
19 | 19 |
import org.eclipse.jface.viewers.IStructuredSelection; |
20 | 20 |
import org.eclipse.jface.viewers.TreeSelection; |
... | ... | |
24 | 24 |
import eu.etaxonomy.cdm.io.common.IImportConfigurator.SOURCE_TYPE; |
25 | 25 |
import eu.etaxonomy.cdm.io.excel.taxa.NormalExplicitImportConfigurator; |
26 | 26 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
27 |
|
|
28 | 27 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
29 | 28 |
|
30 | 29 |
|
... | ... | |
68 | 67 |
} catch (FileNotFoundException e) { |
69 | 68 |
logger.error("Error while reading file" + source.toString()); |
70 | 69 |
} |
71 |
|
|
72 |
Job job = CdmStore.getImportManager().createIOServiceJob(configurator,file , SOURCE_TYPE.INPUTSTREAM);
|
|
70 |
|
|
71 |
Job job = CdmStore.getImportManager().createIOServiceJob(configurator,fis , SOURCE_TYPE.INPUTSTREAM);
|
|
73 | 72 |
CdmStore.getImportManager().run(job); |
74 |
|
|
73 |
|
|
75 | 74 |
return true; |
76 | 75 |
} |
77 | 76 |
|
Also available in: Unified diff
some changes for specimen import