Revision a5b15eef
Added by Katja Luther almost 8 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/edit/DistributionEditingSupport.java | ||
---|---|---|
71 | 71 |
Taxon taxon = (Taxon) element; |
72 | 72 |
Distribution distributionForColumn = getDistributionForColumn(taxon); |
73 | 73 |
if (distributionForColumn != null) { |
74 |
return distributionForColumn.getStatus().getTitleCache(); |
|
74 |
if (PreferencesUtil.isShowIdInVocabularyInChecklistEditor()){ |
|
75 |
if (distributionForColumn.getStatus().getIdInVocabulary() != null){ |
|
76 |
return distributionForColumn.getStatus().getIdInVocabulary(); |
|
77 |
} else{ |
|
78 |
distributionForColumn.getStatus().getTitleCache(); |
|
79 |
} |
|
80 |
} else{ |
|
81 |
return distributionForColumn.getStatus().getTitleCache(); |
|
82 |
} |
|
75 | 83 |
} |
76 | 84 |
// return PresenceAbsenceTerms |
77 | 85 |
} |
... | ... | |
108 | 116 |
* @return |
109 | 117 |
*/ |
110 | 118 |
private Distribution getDistributionForColumn(Taxon taxon) { |
111 |
List<TaxonDescription> listTaxonDescriptions = descriptionService.listTaxonDescriptions(taxon, null, null, |
|
112 |
null, null, null, DESC_INIT_STRATEGY); |
|
119 |
// List<TaxonDescription> listTaxonDescriptions = descriptionService.listTaxonDescriptions(taxon, null, null, |
|
120 |
// null, null, null, DESC_INIT_STRATEGY); |
|
121 |
Set<TaxonDescription> listTaxonDescriptions = taxon.getDescriptions(); |
|
113 | 122 |
TableColumn column = viewer.getTable().getColumn(columnIndex); |
114 | 123 |
for (TaxonDescription td : listTaxonDescriptions) { |
115 | 124 |
for (DescriptionElementBase deb : td.getElements()) { |
Also available in: Unified diff
further development of the checklist editor