#781: Name Type Designation module should reflect current NameTypeDesignation in...
authorp.ciardelli <p.ciardelli@localhost>
Fri, 6 Nov 2009 10:32:47 +0000 (10:32 +0000)
committerp.ciardelli <p.ciardelli@localhost>
Fri, 6 Nov 2009 10:32:47 +0000 (10:32 +0000)
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/propertysheet/type/TypeDesignationPropertySource.java
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/propertysheet/type/wizard/ListTypeWizardPage.java

index 5a75112c2408735863cdc56b704956770f24cfa5..1e4cd96c587bf27f996dcfe74f7d7409185f43e9 100644 (file)
@@ -71,8 +71,11 @@ public class TypeDesignationPropertySource implements ICdmBasePropertySource {
                } else {\r
                        str = "UNDEFINED";\r
                }\r
+               if (typeDesignation instanceof NameTypeDesignation && ((NameTypeDesignation) typeDesignation).isNotDesignated()) {\r
+                       return str + " [not designated]";\r
+               }\r
                if (typeDesignation.getTypeStatus() != null) {\r
-                       str += " [" + typeDesignation.getTypeStatus().getLabel() + "]";\r
+                       return str + " [" + typeDesignation.getTypeStatus().getLabel() + "]";\r
                }\r
                return str;\r
        }\r
index fe94a1f92c43b6e11ebc2810d88a314a4605e78b..f2e39609083bcc77747d5dc4a573204325ea1505 100644 (file)
@@ -206,8 +206,11 @@ public class ListTypeWizardPage extends WizardPage {
                } else {\r
                        str = "UNDEFINED";\r
                }\r
+               if (typeDesignation instanceof NameTypeDesignation && ((NameTypeDesignation) typeDesignation).isNotDesignated()) {\r
+                       return str + " [not designated]";\r
+               }\r
                if (typeDesignation.getTypeStatus() != null) {\r
-                       str += " [" + typeDesignation.getTypeStatus().getLabel() + "]";\r
+                       return str + " [" + typeDesignation.getTypeStatus().getLabel() + "]";\r
                }\r
                \r
                return str;\r