Revision 53e60781
Added by Andreas Müller over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/excel/taxa/ExcelNormalExplicitTaxaImportWizardE4.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.taxeditor.io.e4.in.excel.taxa; |
11 | 10 |
|
12 | 11 |
import java.io.File; |
... | ... | |
43 | 42 |
|
44 | 43 |
|
45 | 44 |
/** |
46 |
* |
|
47 | 45 |
* @author pplitzner |
48 | 46 |
* @since Oct 5, 2017 |
49 |
* |
|
50 | 47 |
*/ |
51 | 48 |
public class ExcelNormalExplicitTaxaImportWizardE4 extends AbstractImportWizardE4<NormalExplicitImportConfigurator>{ |
52 | 49 |
|
... | ... | |
61 | 58 |
super(context, partService, selection); |
62 | 59 |
} |
63 | 60 |
|
64 |
/** {@inheritDoc} */ |
|
65 | 61 |
@Override |
66 | 62 |
public NormalExplicitImportConfigurator getConfigurator() { |
67 | 63 |
return configurator; |
68 | 64 |
} |
69 | 65 |
|
70 |
/** {@inheritDoc} */ |
|
71 | 66 |
@Override |
72 | 67 |
public boolean performFinish() { |
73 | 68 |
URI source = dataSourcePage.getUri(); |
... | ... | |
94 | 89 |
return true; |
95 | 90 |
} |
96 | 91 |
|
97 |
/** {@inheritDoc} */ |
|
98 | 92 |
@Override |
99 | 93 |
public void init() { |
100 | 94 |
configurator = CdmStore.getImportManager().NormalExplicitConfigurator(); |
... | ... | |
105 | 99 |
} |
106 | 100 |
} |
107 | 101 |
|
108 |
/** {@inheritDoc} */ |
|
109 | 102 |
@Override |
110 | 103 |
public void addPages() { |
111 | 104 |
dataSourcePage = ContextInjectionFactory.make(ImportFromFileDataSourceWithReferenceWizardPage.class, context); |
... | ... | |
113 | 106 |
dataSourcePage.setDescription("Please choose an xls file in the NormalExplicit format."); |
114 | 107 |
dataSourcePage.setExtensions(new String[]{"*.xlsx", "*.xls", "*.*"}); |
115 | 108 |
addPage(dataSourcePage); |
116 |
super.addPages(); |
|
117 |
|
|
109 |
super.addPages(); |
|
118 | 110 |
} |
119 |
@Override |
|
120 |
protected void addConfiguratorPage(){ |
|
111 |
|
|
112 |
@Override |
|
113 |
protected void addConfiguratorPage(){ |
|
121 | 114 |
List<String> ignoreMethods = new ArrayList<>(); |
122 | 115 |
ignoreMethods.add("setIgnoreNull"); |
123 | 116 |
ignoreMethods.add("setInteractWithUser"); |
... | ... | |
129 | 122 |
pageConfiguration.initImport(getConfigurator(), ignoreMethods, Messages.ExcelTaxonUpdateWizard_ConfiguratorWizard_label); |
130 | 123 |
addPage(pageConfiguration); |
131 | 124 |
} |
132 |
} |
|
125 |
} |
Also available in: Unified diff
cleanup