Mercurial > dive4elements > river
changeset 4141:b3bc5e9ba912
Fix for part a) and c) in issue #918
Add a CloseClickHandler if a gauge discharge curve is created.
Also add an entry in the project list in this case.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 15 Oct 2012 16:22:58 +0200 |
parents | a9bafa5445f9 |
children | 0ac1158605bd |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java |
diffstat | 2 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Mon Oct 15 16:19:11 2012 +0200 +++ b/flys-client/ChangeLog Mon Oct 15 16:22:58 2012 +0200 @@ -1,3 +1,10 @@ +2012-10-15 Björn Ricks <bjoern.ricks@intevation.de> + + * src/main/java/de/intevation/flys/client/client/FLYS.java: + Add a CloseClickHandler if a gauge discharge curve is created. + Also add an entry in the project list in this case. + Fix for part a) and c) in issue #918 + 2012-10-15 Björn Ricks <bjoern.ricks@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/ProjectList.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java Mon Oct 15 16:19:11 2012 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java Mon Oct 15 16:22:58 2012 +0200 @@ -477,6 +477,7 @@ public void onSuccess(Collection collection) { GWT.log("Successfully created a new collection."); final Collection col = collection; + final ProjectList plist = projectList; artifactService.createGaugeDischargeCurveArtifact( col, locale, riv, ref, new AsyncCallback<Artifact>() { @@ -491,9 +492,13 @@ GWT.log("Successfully created a new artifact."); CollectionView view = new CollectionView(flys, col, artifact); - workspace.addView("new-project", view); + workspace.addView(col.identifier(), view); view.addCollectionChangeHandler(getProjectList()); + view.addCloseClickHandler( + new CloseCollectionViewHandler( + FLYS.this, col.identifier())); + projectList.updateUserCollections(); } }); }