Project

General

Profile

« Previous | Next » 

Revision c1662123

Added by Katja Luther over 4 years ago

ref #8385: adapt preference keys to preference predicates

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/ReferenceSelectionDialog.java
31 31
import eu.etaxonomy.cdm.api.service.IReferenceService;
32 32
import eu.etaxonomy.cdm.api.service.dto.IdentifiedEntityDTO;
33 33
import eu.etaxonomy.cdm.api.service.dto.IdentifiedEntityDTO.AlternativeIdentifier;
34
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
34 35
import eu.etaxonomy.cdm.model.reference.Reference;
35 36
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
36 37
import eu.etaxonomy.cdm.persistence.query.MatchMode;
......
215 216
    protected void addIdentifierCheckButton(Composite searchAndFilter) {
216 217
        Button btnCheckButton = new Button(searchAndFilter, SWT.CHECK);
217 218
        btnCheckButton.setText("Use Identifier");
218
        if (PreferencesUtil.getBooleanValue(IPreferenceKeys.IS_SEARCH_FOR_IDENTIFIER_AS_DEFAULT)){
219
        if (PreferencesUtil.getBooleanValue(PreferencePredicate.SearchForIdentifierAsDefault.getKey())){
219 220
            btnCheckButton.setSelection(true);
220 221
            useIdentifier = true;
221 222
        }
......
277 278
            }
278 279
            UuidAndTitleCache uuidAndTitleCache = (UuidAndTitleCache) element;
279 280
            String titleCache = uuidAndTitleCache.getTitleCache();
280
            if(PreferencesUtil.getBooleanValue(IPreferenceKeys.SHOW_ID_IN_ENTITY_SELECTION_DIAOLOG)){
281
            if(PreferencesUtil.getBooleanValue(PreferencePredicate.ShowIdInSelectionDialog.getKey())){
281 282
                titleCache += " ["+uuidAndTitleCache.getId()+"]";
282 283
            }
283 284
            if (isUseIdentifier()){

Also available in: Unified diff