comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadPeriodPanel.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 8641ce84a4b3
children 5e38e2924c07
comparison
equal deleted inserted replaced
8711:02162b60cf9c 8712:582e970115b6
254 254
255 sedLoadInfoService.getSedimentLoadInfo(locale, river, "single", km[0], km[1], sq_ti_id, 255 sedLoadInfoService.getSedimentLoadInfo(locale, river, "single", km[0], km[1], sq_ti_id,
256 new AsyncCallback<SedimentLoadInfoObject[]>() { 256 new AsyncCallback<SedimentLoadInfoObject[]>() {
257 public void onFailure(Throwable caught) { 257 public void onFailure(Throwable caught) {
258 GWT.log("Could not recieve sediment load informations."); 258 GWT.log("Could not recieve sediment load informations.");
259 SC.warn(caught.getMessage()); 259 SC.warn(MSG.getString(caught.getMessage()));
260 } 260 }
261 261
262 public void onSuccess(SedimentLoadInfoObject[] sedLoad) { 262 public void onSuccess(SedimentLoadInfoObject[] sedLoad) {
263 int num = sedLoad != null ? sedLoad.length :0; 263 int num = sedLoad != null ? sedLoad.length :0;
264 GWT.log("Recieved " + num + " sediment load informations."); 264 GWT.log("Recieved " + num + " sediment load informations.");

http://dive4elements.wald.intevation.org