Revision d4adfe28
Added by Katja Luther about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/util/TaxonTreeNodeLabelProvider.java | ||
---|---|---|
22 | 22 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
23 | 23 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
24 | 24 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
25 |
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto; |
|
25 | 26 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
26 | 27 |
import eu.etaxonomy.taxeditor.preference.Resources; |
27 | 28 |
import eu.etaxonomy.taxeditor.security.RequiredPermissions; |
... | ... | |
78 | 79 |
MessagingUtils.error(getClass(), e); |
79 | 80 |
} |
80 | 81 |
} |
82 |
else if (element instanceof TaxonNodeDto){ |
|
83 |
TaxonNodeDto taxonNode = (TaxonNodeDto) element; |
|
84 |
String text= ""; |
|
85 |
if (taxonNode.isUnplaced()){ |
|
86 |
text += Character.toString((char)63) + " "; |
|
87 |
} |
|
88 |
if (taxonNode.isExcluded()) { |
|
89 |
text +=Character.toString((char)248) + " "; |
|
90 |
} |
|
91 |
text += taxonNode.getTitleCache(); |
|
92 |
return text; |
|
93 |
} |
|
81 | 94 |
return new String(); |
82 | 95 |
} |
83 | 96 |
|
Also available in: Unified diff
adapt taxonnodeLabelProvider for DTO and excluded/unplaced