ref #9002, ref #9005 use getSymbol() for TaxonNode.status in TaxEditor
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 28 May 2020 12:27:44 +0000 (14:27 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 28 May 2020 12:28:27 +0000 (14:28 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/util/TaxonTreeNodeLabelProvider.java

index 733de095b088945dad510154fda239558ad276f5..f39bfddeb35ab71aac33daae63841fc55fa0bcac 100644 (file)
@@ -62,15 +62,9 @@ implements IStyledLabelProvider {
                     return text;
                 }else{
                     try{
-                        String text= "";
-                            if (taxonNode.isUnplaced()){
-                                text += Character.toString((char)63) + " ";
-                            }
-                            if (taxonNode.isExcluded()){
-                                text +=Character.toString((char)248) + " ";
-                            }
-                            if (taxonNode.isDoubtful()){
-                                text +=Character.toString((char)63) +Character.toString((char)63)+ " ";
+                        String text = "";
+                            if (taxonNode.getStatus() != null){
+                                text += taxonNode.getStatus().getSymbol() + " ";
                             }
                         text += taxon.getName() != null ? ((IIdentifiableEntity) HibernateProxyHelper.deproxy(taxon.getName())).getTitleCache() : new String();
                         return text;