Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java @ 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 |
comparison
equal
deleted
inserted
replaced
4692:f2578acc60d7 | 4693:a91d3bde7255 |
---|---|
490 grid.setRecords(rs); | 490 grid.setRecords(rs); |
491 | 491 |
492 return; | 492 return; |
493 } | 493 } |
494 | 494 |
495 c.setName(name); | 495 updateCollectionName(c, name); |
496 updateCollectionName(c); | |
497 } | 496 } |
498 | 497 |
499 | 498 |
500 /** | 499 /** |
501 * Set the name of the collection <i>c</i> to a new value. If the update | 500 * Set the name of the collection <i>c</i> to a new value. If the update |
502 * process succeeded, the project list is refreshed. | 501 * process succeeded, the project list is refreshed. |
503 * | 502 * |
504 * @param c The Collection with a new name. | 503 * @param c The Collection with a new name. |
505 */ | 504 * @param name Name to set on the collection |
506 protected void updateCollectionName(final Collection c) { | 505 */ |
506 private void updateCollectionName(final Collection c, String name) { | |
507 if (c == null) { | 507 if (c == null) { |
508 return; | 508 return; |
509 } | 509 } |
510 | |
511 c.setName(name); | |
510 | 512 |
511 GWT.log("Update Collection name: " + c.identifier()); | 513 GWT.log("Update Collection name: " + c.identifier()); |
512 GWT.log("=> New name = " + c.getName()); | 514 GWT.log("=> New name = " + c.getName()); |
513 | 515 |
514 nameService.setName(c, new AsyncCallback<Void>(){ | 516 nameService.setName(c, new AsyncCallback<Void>(){ |