comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java @ 1415:dfa2d4753fc0

Triggered the reload of MapThemePanel after adding external WMS layers. flys-client/trunk@3305 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 22 Nov 2011 20:20:03 +0000
parents 3484cbfaf369
children bc06a671ef60
comparison
equal deleted inserted replaced
1414:3484cbfaf369 1415:dfa2d4753fc0
43 import de.intevation.flys.client.shared.model.ThemeList; 43 import de.intevation.flys.client.shared.model.ThemeList;
44 import de.intevation.flys.client.shared.model.OutputMode; 44 import de.intevation.flys.client.shared.model.OutputMode;
45 import de.intevation.flys.client.shared.model.WMSLayer; 45 import de.intevation.flys.client.shared.model.WMSLayer;
46 46
47 import de.intevation.flys.client.client.Config; 47 import de.intevation.flys.client.client.Config;
48 import de.intevation.flys.client.client.FLYSConstants;
48 import de.intevation.flys.client.client.services.LoadArtifactService; 49 import de.intevation.flys.client.client.services.LoadArtifactService;
49 import de.intevation.flys.client.client.services.LoadArtifactServiceAsync; 50 import de.intevation.flys.client.client.services.LoadArtifactServiceAsync;
50 import de.intevation.flys.client.client.services.StepForwardService; 51 import de.intevation.flys.client.client.services.StepForwardService;
51 import de.intevation.flys.client.client.services.StepForwardServiceAsync; 52 import de.intevation.flys.client.client.services.StepForwardServiceAsync;
52 import de.intevation.flys.client.client.services.MapOutputService; 53 import de.intevation.flys.client.client.services.MapOutputService;
79 80
80 /** Service handle to clone and add artifacts to collection. */ 81 /** Service handle to clone and add artifacts to collection. */
81 protected LoadArtifactServiceAsync loadArtifactService = 82 protected LoadArtifactServiceAsync loadArtifactService =
82 GWT.create(LoadArtifactService.class); 83 GWT.create(LoadArtifactService.class);
83 84
85 protected FLYSConstants MSG = GWT.create(FLYSConstants.class);
86
84 protected MapToolbar controlPanel; 87 protected MapToolbar controlPanel;
85 protected ThemePanel themePanel; 88 protected ThemePanel themePanel;
86 protected Widget mapPanel; 89 protected Widget mapPanel;
87 90
88 protected FloodMap floodMap; 91 protected FloodMap floodMap;
275 loadArtifactService.loadMany(c, recom, EXTERNAL_WMS_FACTORY, locale, 278 loadArtifactService.loadMany(c, recom, EXTERNAL_WMS_FACTORY, locale,
276 new AsyncCallback<Artifact[]>() { 279 new AsyncCallback<Artifact[]>() {
277 280
278 @Override 281 @Override
279 public void onFailure(Throwable throwable) { 282 public void onFailure(Throwable throwable) {
280 SC.warn(throwable.getMessage()); 283 SC.warn(MSG.getString(throwable.getMessage()));
281 } 284 }
282 285
283 @Override 286 @Override
284 public void onSuccess(Artifact[] newArtifacts) { 287 public void onSuccess(Artifact[] newArtifacts) {
285 SC.warn("SUCCESS!"); 288 getThemePanel().updateCollection();
286 } 289 }
287 } 290 }
288 ); 291 );
289 } 292 }
290 293

http://dive4elements.wald.intevation.org