diff flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java @ 97:0bec0112c8b3

Integrated the ProjectList into the client. Now, the Collections of a user are displayed in the list. flys-client/trunk@1610 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 29 Mar 2011 13:53:24 +0000
parents a26489e55730
children 95b30a5d6350
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java	Tue Mar 29 13:49:04 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java	Tue Mar 29 13:53:24 2011 +0000
@@ -192,7 +192,11 @@
         // TODO Call the REST service to create a new Collection
         // TODO Use the UUID of the Collection to add a new CollectionView!
         Collection c = new DefaultCollection(new java.util.Date().toString());
-        workspace.addView(c.identifier(), new CollectionView(this, c));
+
+        CollectionView view = new CollectionView(this, c);
+        view.addCollectionChangeHandler(getProjectList());
+
+        workspace.addView(c.identifier(), view);
     }
 
 

http://dive4elements.wald.intevation.org