select the preferred nomenclatural code in database preferences
authorKatja Luther <k.luther@bgbm.org>
Thu, 4 May 2017 09:06:20 +0000 (11:06 +0200)
committerKatja Luther <k.luther@bgbm.org>
Thu, 4 May 2017 09:06:20 +0000 (11:06 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/wizard/DatabasePreferencesPage.java

index 24dc0d250393fbe53cd48f56fe43a3c287bc9faf..6f3ac0ccabd61419bec71c3e34bc7096d2b9f387 100755 (executable)
@@ -104,7 +104,8 @@ public class DatabasePreferencesPage extends AbstractPreferenceWizard implements
         Label nomenclaturalCodeLabel;
 
         composite = addTab(Messages.DatabasePreferencesPage_Define_Default_NomenclaturalCode);
-        nomenclaturalCodeCombo = new Combo(composite, SWT.READ_ONLY);
+        nomenclaturalCodeCombo = new Combo(composite, SWT.DROP_DOWN);
+
         List<NomenclaturalCode> supportedCodes = NomenclaturalCodeHelper
               .getSupportedCodes();
         for (NomenclaturalCode code: supportedCodes) {
@@ -112,6 +113,7 @@ public class DatabasePreferencesPage extends AbstractPreferenceWizard implements
                    .getDescription(code));
 
        }
+        nomenclaturalCodeCombo.select(0);
        getLabelAndValues();
        //get the actual nomenclatural code and set it as selection: doGetPreferenceStore().getString(IPreferenceKeys.CDM_NOMENCLATURAL_CODE_KEY);
        nomenclaturalCodeCombo.addSelectionListener(new SelectionAdapter() {