changeset 608:ee40f86dd009

Removed the formatter for project names in the project list. flys-client/trunk@2215 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 23 Jun 2011 11:28:42 +0000
parents 3acc631efdf0
children 418be98527f0
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java
diffstat 2 files changed, 6 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Thu Jun 23 10:07:52 2011 +0000
+++ b/flys-client/ChangeLog	Thu Jun 23 11:28:42 2011 +0000
@@ -1,3 +1,9 @@
+2011-06-23  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/ProjectList.java:
+	  Removed the formatter that cuts out a piece of the middle of project
+	  names.
+
 2011-06-23  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/shared/model/CollectionRecord.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java	Thu Jun 23 10:07:52 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java	Thu Jun 23 11:28:42 2011 +0000
@@ -543,20 +543,6 @@
             }
         });
 
-        name.setCellFormatter(new CellFormatter() {
-            public String format(Object value, ListGridRecord record, int row, int col) {
-                String n = (String) value;
-                int len  = n.length();
-
-                if (len < 26) {
-                    return n;
-                }
-
-                int sec  = len - 13;
-                return n.substring(0, 12) + "..." + n.substring(sec, len-1);
-            }
-        });
-
         name.setWidth(COLUMN_TITLE_WIDTH);
         name.setAlign(Alignment.LEFT);
 

http://dive4elements.wald.intevation.org