Mercurial > dive4elements > river
changeset 895:9acbd3f98262
Update the collection view title when the project name changes.
(Issue166)
flys-client/trunk@2740 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 14 Sep 2011 11:36:06 +0000 (2011-09-14) |
parents | 5341be7dec7a |
children | fe23bbf0ea11 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java |
diffstat | 3 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Wed Sep 14 11:07:19 2011 +0000 +++ b/flys-client/ChangeLog Wed Sep 14 11:36:06 2011 +0000 @@ -1,3 +1,11 @@ +2011-09-14 Raimund Renkert <raimund.renkert@intevation.de> + + Issue166 + + * src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java, + src/main/java/de/intevation/flys/client/client/ui/ProjectList.java: + Update the collection view title when the project name changes. + 2011-09-14 Raimund Renkert <raimund.renkert@intevation.de> Issue203
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java Wed Sep 14 11:07:19 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java Wed Sep 14 11:36:06 2011 +0000 @@ -76,5 +76,11 @@ project.destroy(); } } + + + public void updateTitle(String uuid, String title) { + CollectionView view = views.get(uuid); + view.setTitle(title); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Wed Sep 14 11:07:19 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Wed Sep 14 11:36:06 2011 +0000 @@ -425,7 +425,7 @@ * * @param c The Collection with a new name. */ - protected void updateCollectionName(Collection c) { + protected void updateCollectionName(final Collection c) { if (c == null) { return; } @@ -448,6 +448,7 @@ public void onSuccess(Void v) { updateUserCollections(); + flys.getWorkspace().updateTitle(c.identifier(), c.getName()); } }); }