[Dive4elements-commits] [PATCH 5 of 8] Change parameters of updateCollectionName

Wald Commits scm-commit at wald.intevation.org
Mon Dec 17 16:19:17 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1355757305 -3600
# Node ID a91d3bde7255e2cb59086b5bb6180aef04df9ce5
# Parent  f2578acc60d7e57c2dc93e07039e5d45a94614ee
Change parameters of updateCollectionName

diff -r f2578acc60d7 -r a91d3bde7255 flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java	Mon Dec 17 16:14:27 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java	Mon Dec 17 16:15:05 2012 +0100
@@ -492,8 +492,7 @@
             return;
         }
 
-        c.setName(name);
-        updateCollectionName(c);
+        updateCollectionName(c, name);
     }
 
 
@@ -502,12 +501,15 @@
      * process succeeded, the project list is refreshed.
      *
      * @param c The Collection with a new name.
+     * @param name Name to set on the collection
      */
-    protected void updateCollectionName(final Collection c) {
+    private void updateCollectionName(final Collection c, String name) {
         if (c == null) {
             return;
         }
 
+        c.setName(name);
+
         GWT.log("Update Collection name: " + c.identifier());
         GWT.log("=> New name = " + c.getName());
 


More information about the Dive4elements-commits mailing list