Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java @ 100:95b30a5d6350
Bugfix: A collection view just creates a single time a new collection - even if we step back to a previous state and go forward afterwards.
flys-client/trunk@1614 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 30 Mar 2011 07:40:53 +0000 |
parents | 0bec0112c8b3 |
children | f7967d12ce6e |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java Wed Mar 30 07:35:59 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java Wed Mar 30 07:40:53 2011 +0000 @@ -189,14 +189,10 @@ * This method creates a new CollectionView and adds it to the workspace. */ public void newProject() { - // 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()); + CollectionView view = new CollectionView(this); + workspace.addView(view); - CollectionView view = new CollectionView(this, c); view.addCollectionChangeHandler(getProjectList()); - - workspace.addView(c.identifier(), view); }