Project

General

Profile

Revision 2ec82aef

ID2ec82aef6b7e0f90284bccbd44913586dce49953
Parent e83ac2b8
Child d94e59f0

Added by Katja Luther over 3 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

Add picture from clipboard (Maximum size: 40 MB)