comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadSQTiPanel.java @ 8712:582e970115b6

(issue1448) Localize SedimentLoadInfo Exceptions shown in the client
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 24 Apr 2015 17:18:48 +0200
parents b6371be363b1
children 5e38e2924c07
comparison
equal deleted inserted replaced
8711:02162b60cf9c 8712:582e970115b6
173 173
174 sedLoadInfoService.getSedimentLoadInfo(locale, river, "sq_time_intervals", km[0], km[1], "", 174 sedLoadInfoService.getSedimentLoadInfo(locale, river, "sq_time_intervals", km[0], km[1], "",
175 new AsyncCallback<SedimentLoadInfoObject[]>() { 175 new AsyncCallback<SedimentLoadInfoObject[]>() {
176 public void onFailure(Throwable caught) { 176 public void onFailure(Throwable caught) {
177 GWT.log("Could not receive sediment load informations."); 177 GWT.log("Could not receive sediment load informations.");
178 SC.warn(caught.getMessage()); 178 SC.warn(MSG.getString(caught.getMessage()));
179 } 179 }
180 180
181 public void onSuccess(SedimentLoadInfoObject[] sedLoad) { 181 public void onSuccess(SedimentLoadInfoObject[] sedLoad) {
182 int num = sedLoad != null ? sedLoad.length :0; 182 int num = sedLoad != null ? sedLoad.length :0;
183 GWT.log("Received " + num + " sediment load informations."); 183 GWT.log("Received " + num + " sediment load informations.");

http://dive4elements.wald.intevation.org