Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
99:5c3d685546a6 | 100:95b30a5d6350 |
---|---|
187 | 187 |
188 /** | 188 /** |
189 * This method creates a new CollectionView and adds it to the workspace. | 189 * This method creates a new CollectionView and adds it to the workspace. |
190 */ | 190 */ |
191 public void newProject() { | 191 public void newProject() { |
192 // TODO Call the REST service to create a new Collection | 192 CollectionView view = new CollectionView(this); |
193 // TODO Use the UUID of the Collection to add a new CollectionView! | 193 workspace.addView(view); |
194 Collection c = new DefaultCollection(new java.util.Date().toString()); | 194 |
195 | |
196 CollectionView view = new CollectionView(this, c); | |
197 view.addCollectionChangeHandler(getProjectList()); | 195 view.addCollectionChangeHandler(getProjectList()); |
198 | |
199 workspace.addView(c.identifier(), view); | |
200 } | 196 } |
201 | 197 |
202 | 198 |
203 /** | 199 /** |
204 * Create a new Artifact. | 200 * Create a new Artifact. |