use last selected abcd provider for import
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / view / dataimport / e4 / DataImportViewE4.java
index f421b89cf8d7bc0ed005fc9669e48da949016390..ecdeb79d34f48e1e01c88a156b0db1c413bd848b 100644 (file)
@@ -41,6 +41,7 @@ import org.eclipse.wb.swt.ResourceManager;
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
 import eu.etaxonomy.cdm.ext.occurrence.OccurenceQuery;
+import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206ImportConfigurator;
 import eu.etaxonomy.cdm.model.taxon.Classification;
 import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
 import eu.etaxonomy.taxeditor.databaseAdmin.wizard.ImportPreferencesWizard;
@@ -48,6 +49,7 @@ import eu.etaxonomy.taxeditor.model.IContextListener;
 import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
 import eu.etaxonomy.taxeditor.model.IPartContentHasFactualData;
 import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
+import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 import eu.etaxonomy.taxeditor.ui.dialog.selection.SelectionDialogFactory;
 
@@ -87,6 +89,8 @@ IConversationEnabled, IPartContentHasDetails, IPartContentHasSupplementalData, I
 
     private Button openConfigurator;
 
+    private Abcd206ImportConfigurator config;
+
     public Classification getClassification() {
                return classification;
        }
@@ -160,10 +164,14 @@ IConversationEnabled, IPartContentHasDetails, IPartContentHasSupplementalData, I
         textReferenceString.setLayoutData(gd_textReferenceString);
 
         //open configuration
+
+        PreferencesUtil.getLocalAbcdImportConfigurator(false);
+
         openConfigurator = new Button(composite_1, SWT.PUSH);
         openConfigurator.setText("Configuration");
         new Label(composite_1, SWT.NONE);
         new Label(composite_1, SWT.NONE);
+
         openConfigurator.addSelectionListener(new SelectionAdapter(){
             @Override
             public void widgetSelected(SelectionEvent e) {
@@ -171,6 +179,7 @@ IConversationEnabled, IPartContentHasDetails, IPartContentHasSupplementalData, I
                 IWizard wizard = new ImportPreferencesWizard();
                 WizardDialog dialog = new WizardDialog(e.display.getActiveShell(), wizard);
                 dialog.open();
+
             }
         });
 
@@ -228,6 +237,7 @@ IConversationEnabled, IPartContentHasDetails, IPartContentHasSupplementalData, I
             }
         });
         //import button
+
         saveImportedSpecimenAction = new SaveImportedSpecimenActionE4(this);
         initializeToolBar();
     }