Project

General

Profile

« Previous | Next » 

Revision a8de83de

Added by Katja Luther about 6 years ago

ref #6429: smaller changes in admin preferences

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/AbcdImportPreference.java
214 214
        for(NomenclaturalCode code: NomenclaturalCode.values()){
215 215
            nomenclaturalCodeSelectionCombo.add(code.getKey());
216 216
        }
217

  
218

  
217
        int index = 0;
218
        if (configurator.getNomenclaturalCode() != null){
219
            for (String label : nomenclaturalCodeSelectionCombo.getItems()){
220
                if (label.equals(configurator.getNomenclaturalCode().getKey())){
221
                    nomenclaturalCodeSelectionCombo.select(index);
222
                }
223
                index++;
224
            }
225
        }
219 226

  
220 227
        // TODO remember last selection
221 228
        nomenclaturalCodeSelectionCombo.addSelectionListener(this);
......
272 279
        this.configurator.setMoveNewTaxaToDefaultClassification(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MOVE_NEW_TAXA_TO_DEFAULT_CLASSIFICATION));
273 280
        this.configurator.setReuseExistingDescriptiveGroups(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_REUSE_EXISTING_DESCRIPTIVE_GROUPS));
274 281
        this.configurator.setReuseExistingTaxaWhenPossible(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_REUSE_EXISTING_TAXA_WHEN_POSSIBLE));
282
        this.configurator.setNomenclaturalCode(PreferencesUtil.getPreferredNomenclaturalCode(doGetPreferenceStore().getString(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_NOMENCLATURAL_CODE)));
275 283

  
276 284
    }
277 285

  

Also available in: Unified diff