Revision 66eb9f49
Added by Andreas Müller over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExcelNormalExplicitTaxaImportWizard.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.wizard; |
11 | 10 |
|
12 | 11 |
import java.io.File; |
... | ... | |
28 | 27 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
29 | 28 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
30 | 29 |
|
31 |
|
|
32 | 30 |
/** |
33 | 31 |
* <p>ExcelNormalExplicitTaxaImportWizard class.</p> |
34 | 32 |
* |
35 | 33 |
* @author n.hoffmann |
36 | 34 |
* @created Sep 22, 2009 |
37 |
* @version 1.0 |
|
38 | 35 |
*/ |
39 | 36 |
public class ExcelNormalExplicitTaxaImportWizard extends AbstractImportWizard<NormalExplicitImportConfigurator>{ |
40 | 37 |
|
... | ... | |
43 | 40 |
private ImportFromFileDataSourceWizardPage dataSourcePage; |
44 | 41 |
private static final Logger logger = Logger.getLogger(ExcelNormalExplicitTaxaImportWizard.class); |
45 | 42 |
|
46 |
/* (non-Javadoc) |
|
47 |
* @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#getConfigurator() |
|
48 |
*/ |
|
49 |
/** {@inheritDoc} */ |
|
50 | 43 |
@Override |
51 | 44 |
public NormalExplicitImportConfigurator getConfigurator() { |
52 | 45 |
return configurator; |
53 | 46 |
} |
54 | 47 |
|
55 |
/* (non-Javadoc) |
|
56 |
* @see org.eclipse.jface.wizard.Wizard#performFinish() |
|
57 |
*/ |
|
58 |
/** {@inheritDoc} */ |
|
59 | 48 |
@Override |
60 | 49 |
public boolean performFinish() { |
61 | 50 |
URI source = dataSourcePage.getUri(); |
... | ... | |
82 | 71 |
return true; |
83 | 72 |
} |
84 | 73 |
|
85 |
/* (non-Javadoc) |
|
86 |
* @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection) |
|
87 |
*/ |
|
88 |
/** {@inheritDoc} */ |
|
89 | 74 |
@Override |
90 | 75 |
public void init(IWorkbench workbench, IStructuredSelection selection) { |
91 | 76 |
super.init(workbench, selection); |
... | ... | |
97 | 82 |
} |
98 | 83 |
} |
99 | 84 |
|
100 |
/* (non-Javadoc) |
|
101 |
* @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#addPages() |
|
102 |
*/ |
|
103 |
/** {@inheritDoc} */ |
|
104 | 85 |
@Override |
105 | 86 |
public void addPages() { |
106 | 87 |
super.addPages(); |
... | ... | |
109 | 90 |
"Please choose an xls file in the NormalExplicit format.", new String[]{"*.xlsx", "*.xls", "*.*"}); |
110 | 91 |
addPage(dataSourcePage); |
111 | 92 |
} |
112 |
} |
|
93 |
} |
Also available in: Unified diff
cleanup