Revision 7cc57f1d
Added by Patrick Plitzner about 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/categorical/CategoricalDataDisplayConverter.java | ||
---|---|---|
14 | 14 |
|
15 | 15 |
import eu.etaxonomy.cdm.model.description.CategoricalData; |
16 | 16 |
import eu.etaxonomy.cdm.model.description.State; |
17 |
import eu.etaxonomy.cdm.persistence.dto.TermDto; |
|
18 |
import eu.etaxonomy.cdm.remote.l10n.TermRepresentation_L10n; |
|
17 | 19 |
|
18 | 20 |
/** |
19 | 21 |
* Converts CategoricalData and States of one cell of the character matrix to a |
... | ... | |
39 | 41 |
else if(canonicalValue instanceof State){ |
40 | 42 |
return ((State) canonicalValue).getLabel(); |
41 | 43 |
} |
44 |
else if(canonicalValue instanceof TermDto){ |
|
45 |
((TermDto) canonicalValue).localize(new TermRepresentation_L10n()); |
|
46 |
return ((TermDto) canonicalValue).getRepresentation_L10n(); |
|
47 |
} |
|
42 | 48 |
else if (canonicalValue instanceof Collection) { |
43 | 49 |
// Collection.toString() will add [ and ] around |
44 | 50 |
// the values in the Collection |
Also available in: Unified diff
ref #8242 Refactor states to use DTOs