comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java @ 895:9acbd3f98262

Update the collection view title when the project name changes. (Issue166) flys-client/trunk@2740 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 14 Sep 2011 11:36:06 +0000
parents 2c9c3448e499
children fe23bbf0ea11
comparison
equal deleted inserted replaced
894:5341be7dec7a 895:9acbd3f98262
423 * Set the name of the collection <i>c</i> to a new value. If the update 423 * Set the name of the collection <i>c</i> to a new value. If the update
424 * process succeeded, the project list is refreshed. 424 * process succeeded, the project list is refreshed.
425 * 425 *
426 * @param c The Collection with a new name. 426 * @param c The Collection with a new name.
427 */ 427 */
428 protected void updateCollectionName(Collection c) { 428 protected void updateCollectionName(final Collection c) {
429 if (c == null) { 429 if (c == null) {
430 return; 430 return;
431 } 431 }
432 432
433 GWT.log("Update Collection name: " + c.identifier()); 433 GWT.log("Update Collection name: " + c.identifier());
446 } 446 }
447 } 447 }
448 448
449 public void onSuccess(Void v) { 449 public void onSuccess(Void v) {
450 updateUserCollections(); 450 updateUserCollections();
451 flys.getWorkspace().updateTitle(c.identifier(), c.getName());
451 } 452 }
452 }); 453 });
453 } 454 }
454 455
455 456

http://dive4elements.wald.intevation.org