changeset 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 (2011-11-22)
parents 3484cbfaf369
children 16f19f12a962
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Nov 22 20:13:16 2011 +0000
+++ b/flys-client/ChangeLog	Tue Nov 22 20:20:03 2011 +0000
@@ -1,3 +1,8 @@
+2011-11-22  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java:
+	  Trigger the update of MapThemePanel after adding external WMS layers.
+
 2011-11-22  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/shared/model/WMSLayer.java: Added
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java	Tue Nov 22 20:13:16 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java	Tue Nov 22 20:20:03 2011 +0000
@@ -45,6 +45,7 @@
 import de.intevation.flys.client.shared.model.WMSLayer;
 
 import de.intevation.flys.client.client.Config;
+import de.intevation.flys.client.client.FLYSConstants;
 import de.intevation.flys.client.client.services.LoadArtifactService;
 import de.intevation.flys.client.client.services.LoadArtifactServiceAsync;
 import de.intevation.flys.client.client.services.StepForwardService;
@@ -81,6 +82,8 @@
     protected LoadArtifactServiceAsync loadArtifactService =
         GWT.create(LoadArtifactService.class);
 
+    protected FLYSConstants MSG = GWT.create(FLYSConstants.class);
+
     protected MapToolbar controlPanel;
     protected ThemePanel themePanel;
     protected Widget     mapPanel;
@@ -277,12 +280,12 @@
 
                 @Override
                 public void onFailure(Throwable throwable) {
-                    SC.warn(throwable.getMessage());
+                    SC.warn(MSG.getString(throwable.getMessage()));
                 }
 
                 @Override
                 public void onSuccess(Artifact[] newArtifacts) {
-                    SC.warn("SUCCESS!");
+                    getThemePanel().updateCollection();
                 }
             }
         );

http://dive4elements.wald.intevation.org