fix #3573 Add non-generic configurator page to ABCD import wizard
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 24 Oct 2016 11:47:41 +0000 (13:47 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 24 Oct 2016 11:47:41 +0000 (13:47 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportWizard.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbstractImportWizard.java

index d75d589bfb5572a0c2bec55c7258f87a77bc657f..f7779af3c581790543c6acda20e8db6d6f8a8795 100644 (file)
@@ -11,8 +11,6 @@
 package eu.etaxonomy.taxeditor.io.wizard;
 
 import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
 import java.net.URI;
 
 import org.apache.log4j.Logger;
@@ -22,9 +20,7 @@ import org.eclipse.ui.IWorkbench;
 import eu.etaxonomy.cdm.database.DbSchemaValidation;
 import eu.etaxonomy.cdm.io.common.IImportConfigurator.SOURCE_TYPE;
 import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206ImportConfigurator;
-import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.store.CdmStore;
-import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin;
 
 /**
  *
@@ -68,6 +64,12 @@ public class AbcdImportWizard extends AbstractImportWizard<Abcd206ImportConfigur
                super.init(workbench, selection);
                configurator =  CdmStore.getImportManager().AbcdConfigurator();
        }
+       
+       @Override
+       protected void addConfiguratorPage() {
+               AbcdImportConfiguratorWizardPage configuratorWizardPage = AbcdImportConfiguratorWizardPage.createPage(configurator);
+               addPage(configuratorWizardPage);
+       }
 
        /** {@inheritDoc} */
        @Override
index d84ad8dda92273a4827ca595b0c3d847fdae438a..f63cff8dba80d05e09e2c5b3c46912f3ebfdd121 100644 (file)
@@ -44,14 +44,16 @@ public abstract class AbstractImportWizard<CONFIG extends IIoConfigurator> exten
        @Override
        public void addPages() {
                super.addPages();
-
-               pageConfiguration = GenericConfiguratorWizardPage.Import(CONFIGURATION_PAGE, getConfigurator());
-               this.addPage(pageConfiguration);
+               
+               addConfiguratorPage();
 
                pageNomenclaturalCode = new NomenclaturalCodeWizardPage((IImportConfigurator)getConfigurator());
                this.addPage(pageNomenclaturalCode);
-
-
+       }
+       
+       protected void addConfiguratorPage(){
+               pageConfiguration = GenericConfiguratorWizardPage.Import(CONFIGURATION_PAGE, getConfigurator());
+               this.addPage(pageConfiguration);
        }
 
        @Override