# HG changeset patch # User Björn Ricks # Date 1350310978 -7200 # Node ID b3bc5e9ba912b1a4d2cb6007def31176bab8fc10 # Parent a9bafa5445f96d4fafbb2b29b1dafda4403a4239 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. diff -r a9bafa5445f9 -r b3bc5e9ba912 flys-client/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/client/client/ui/ProjectList.java: diff -r a9bafa5445f9 -r b3bc5e9ba912 flys-client/src/main/java/de/intevation/flys/client/client/FLYS.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() { @@ -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(); } }); }