comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 601:3cf6ee30207c

Register newly created CollectionViews at FLYSWorkspace to avoid an inconsistent view. flys-client/trunk@2206 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 22 Jun 2011 14:02:11 +0000
parents c0477626ae6a
children 854312c0528c
comparison
equal deleted inserted replaced
600:347cf4a5a486 601:3cf6ee30207c
372 * Set the current collection. 372 * Set the current collection.
373 * 373 *
374 * @param collection The new collection. 374 * @param collection The new collection.
375 */ 375 */
376 protected void setCollection(Collection collection) { 376 protected void setCollection(Collection collection) {
377 if (collection != null && this.collection == null) {
378 flys.getWorkspace().addView(collection.identifier(), this);
379 }
380
377 Collection tmp = this.collection; 381 Collection tmp = this.collection;
378 this.collection = collection; 382 this.collection = collection;
379 383
380 fireCollectionChangeEvent(tmp, this.collection); 384 fireCollectionChangeEvent(tmp, this.collection);
381 } 385 }

http://dive4elements.wald.intevation.org