From d80470cddb6b68b4a8aaf0594da0e22e6dba6512 Mon Sep 17 00:00:00 2001
From: buczekp <buczekp>
Date: Tue, 7 Dec 2010 09:55:40 +0000
Subject: [PATCH] [LMS-1908] removed TODO and improved string representation

SVN: 19032
---
 .../sample/LibrarySampleBatchRegistrationForm.java       | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/sample/LibrarySampleBatchRegistrationForm.java b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/sample/LibrarySampleBatchRegistrationForm.java
index 07411617721..5e38c4b8ab7 100644
--- a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/sample/LibrarySampleBatchRegistrationForm.java
+++ b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/sample/LibrarySampleBatchRegistrationForm.java
@@ -64,6 +64,13 @@ public final class LibrarySampleBatchRegistrationForm extends AbstractSampleBatc
         {
             return character;
         }
+
+        // toString is used in combo box for String representation
+        @Override
+        public String toString()
+        {
+            return name() + " (" + character + ")";
+        }
     }
 
     private static final String PLATES = "Plates";
@@ -150,7 +157,7 @@ public final class LibrarySampleBatchRegistrationForm extends AbstractSampleBatc
         options.setForceSelection(true);
         options.setEditable(false);
         options.setAllowBlank(false);
-        options.setSimpleValue(Separator.COMMA); // TODO TAB? display settings?
+        options.setSimpleValue(Separator.COMMA);
         FieldUtil.markAsMandatory(options);
         return options;
     }
-- 
GitLab