Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java @ 889:2c9c3448e499
Fixed some minor problems and strings in projectlist.
(Issue285)
flys-client/trunk@2729 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 14 Sep 2011 09:10:58 +0000 |
parents | 6a27949c7022 |
children | 9acbd3f98262 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Wed Sep 14 08:00:56 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Wed Sep 14 09:10:58 2011 +0000 @@ -572,6 +572,10 @@ */ protected void updateGridDataSource (Collection[] c) { collections.clear(); + if(c == null) { + clearGrid(); + return; + } for (Collection coll : c) { this.collections.add(coll); } @@ -619,9 +623,10 @@ name = collections.get(i).getName(); } + name = name.toLowerCase(); // Add a collection to the filtered list if the search string // matches. - if (name.contains(search)) { + if (name.contains(search.toLowerCase())) { filteredCollections.add(collections.get(i)); j++; } @@ -823,7 +828,7 @@ name = cloneCollection.identifier(); } - newColl.setName("(" + messages.copy_of() + ")" + name); + newColl.setName(messages.copy_of() + ": " + name); updateCollectionName(newColl); if(cloneCollection.getTTL() == 0) {