Project

General

Profile

« Previous | Next » 

Revision 2ec82aef

Added by Katja Luther over 5 years ago

select the preferred nomenclatural code in database preferences

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/wizard/DatabasePreferencesPage.java
104 104
        Label nomenclaturalCodeLabel;
105 105

  
106 106
        composite = addTab(Messages.DatabasePreferencesPage_Define_Default_NomenclaturalCode);
107
        nomenclaturalCodeCombo = new Combo(composite, SWT.READ_ONLY);
107
        nomenclaturalCodeCombo = new Combo(composite, SWT.DROP_DOWN);
108

  
108 109
        List<NomenclaturalCode> supportedCodes = NomenclaturalCodeHelper
109 110
              .getSupportedCodes();
110 111
        for (NomenclaturalCode code: supportedCodes) {
......
112 113
                   .getDescription(code));
113 114

  
114 115
       }
116
        nomenclaturalCodeCombo.select(0);
115 117
       getLabelAndValues();
116 118
       //get the actual nomenclatural code and set it as selection: doGetPreferenceStore().getString(IPreferenceKeys.CDM_NOMENCLATURAL_CODE_KEY);
117 119
       nomenclaturalCodeCombo.addSelectionListener(new SelectionAdapter() {

Also available in: Unified diff