/**
- *
+ *
*/
package eu.etaxonomy.taxeditor.io.wizard;
public class SpecimenCdmExcelImportWizard extends AbstractImportWizard<SpecimenCdmExcelImportConfigurator> {
private SpecimenCdmExcelImportConfigurator configurator;
-
+
private ImportFromFileDataSourceWizardPage dataSourcePage;
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#getConfigurator()
*/
public SpecimenCdmExcelImportConfigurator getConfigurator() {
return configurator;
}
-
+
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
*/
/** {@inheritDoc} */
- public void init(IWorkbench workbench, IStructuredSelection selection) {
+ @Override
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
super.init(workbench, selection);
configurator = CdmStore.getImportManager().SpecimenCdmExcelImportConfigurator();
}
URI source = dataSourcePage.getUri();
configurator.setSource(source);
configurator.setDbSchemaValidation(DbSchemaValidation.CREATE);
-
+
CdmStore.getImportManager().run(configurator);
-
+
return true;
}
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#addPages()
*/
@Override
public void addPages() {
super.addPages();
-
- dataSourcePage = new ImportFromFileDataSourceWizardPage("Choose Specimen CDM Excel",
- "Please choose an xls file in the SpecimenCdmExcel format.", new String[]{"*.xls"});
+
+ dataSourcePage = new ImportFromFileDataSourceWizardPage("Choose Specimen CDM Excel",
+ "Please choose an xls file in the SpecimenCdmExcel format.", new String[]{"*.xls" ,"*.xlsx", "*.*"});
addPage(dataSourcePage);
}