Merge branch 'release/5.8.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / io / wizard / AbcdImportConfiguratorWizardPage.java
index 41611f863eb4fc6d404a04043ec2892c7d4e87b0..a8838b33befff8c1fd1647a339c0d28e8a0f9e58 100644 (file)
@@ -22,6 +22,8 @@ import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Combo;
 import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
 
 import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206ImportConfigurator;
 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
@@ -45,6 +47,7 @@ public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard i
        private boolean isPreferencePage = false;
 
     private Combo nomenclaturalCodeSelectionCombo;
+    private Text textDNAProviderString;
 
        protected AbcdImportConfiguratorWizardPage(String title, String description, Abcd206ImportConfigurator configurator) {
         super(PAGE_NAME);
@@ -235,6 +238,16 @@ public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard i
             }
         });
 
+        Label labelRef = new Label(composite, SWT.NONE);
+        labelRef.setText("Biocase provider for associated DNA");
+        new Label(composite, SWT.NONE);
+        textDNAProviderString = new Text(composite, SWT.NONE);
+        textDNAProviderString.setEnabled(true);
+        textDNAProviderString.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true, 1, 1));
+        if (abcdImportConfigurator.getDnaSoure() != null){
+               textDNAProviderString.setText(abcdImportConfigurator.getDnaSoure().toString());
+        }
+
         GridData gridData = new GridData();
         gridData = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
         gridData.horizontalIndent = 5;
@@ -307,6 +320,9 @@ public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard i
                if ( abcdImportConfigurator.getNomenclaturalCode() != null){
                    PreferencesUtil.setStringValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_NOMENCLATURAL_CODE, abcdImportConfigurator.getNomenclaturalCode().getKey());
                }
+               if ( textDNAProviderString.getText() != null){
+                    PreferencesUtil.setStringValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DNA_PROVIDER, textDNAProviderString.getText());
+            }
 
 
            }