Mercurial > dive4elements > river
changeset 4693:a91d3bde7255
Change parameters of updateCollectionName
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 17 Dec 2012 16:15:05 +0100 |
parents | f2578acc60d7 |
children | 5411975223f0 |
files | flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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());