- changed label provider according to requirements
authorPatric Plitzner <p.plitzner@bgbm.org>
Wed, 6 May 2015 12:26:05 +0000 (12:26 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Wed, 6 May 2015 12:26:05 +0000 (12:26 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateLabelProvider.java

index 10405b6dae51d97d06d8721a042bd8bd319bbb81..1b47155dba9396fce2fbdfb417b72105c024208c 100644 (file)
@@ -155,7 +155,7 @@ public class DerivateLabelProvider extends ColumnLabelProvider {
         conversation.bind();
 
         final String emptyString = "";
-        final String separator = ", ";
+        final String separator = " ";
 
         String label = emptyString;
 
@@ -232,8 +232,7 @@ public class DerivateLabelProvider extends ColumnLabelProvider {
                 }
                 eu.etaxonomy.cdm.model.occurrence.Collection collection = derivedUnit.getCollection();
                 if(collection!=null){
-                    label += collection.getName()!=null?collection.getName()+" ":emptyString;
-                    label += collection.getCode()!=null?"("+collection.getCode()+"), ":emptyString;
+                    label += collection.getCode()!=null?"("+collection.getCode()+")"+separator:emptyString;
                 }
                 String mostSignificantIdentifier = CdmStore.getService(IOccurrenceService.class).getMostSignificantIdentifier(derivedUnit);
                 label += mostSignificantIdentifier!=null?mostSignificantIdentifier+separator:emptyString;