Revision 1b7e56c0
Added by Patrick Plitzner about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/TermDtoLabelProvider.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.cdm.persistence.dto.TermDto; |
24 | 24 |
import eu.etaxonomy.cdm.persistence.dto.TermVocabularyDto; |
25 | 25 |
import eu.etaxonomy.cdm.remote.l10n.TermRepresentation_L10n; |
26 |
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys; |
|
27 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
26 | 28 |
|
27 | 29 |
/** |
28 | 30 |
* |
... | ... | |
74 | 76 |
termDto.localize(new TermRepresentation_L10n()); |
75 | 77 |
label = termDto.getRepresentation_L10n(); |
76 | 78 |
|
77 |
if(element instanceof TermDto && ((TermDto) termDto).getIdInVocabulary()!=null){ |
|
79 |
if(PreferencesUtil.getBooleanValue(IPreferenceKeys.SHOW_VOCABULARY_ID_FOR_TERM_LABELS) |
|
80 |
&& element instanceof TermDto && ((TermDto) termDto).getIdInVocabulary()!=null){ |
|
78 | 81 |
label = CdmUtils.concat(" : ", ((TermDto) termDto).getIdInVocabulary(), label); |
79 | 82 |
} |
80 | 83 |
} |
Also available in: Unified diff
Evaluate "show id in vocabulary" preference in term editor