[Dive4elements-commits] [PATCH] use name and type instead of ID for measurement station link
Wald Commits
scm-commit at wald.intevation.org
Mon May 13 13:37:33 CEST 2013
# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1368444065 -7200
# Node ID 324d349ae8d6ca6464264c042084fb49412c7e84
# Parent 2c4be2375f6367e17334a1540294ce0366ba6c8d
use name and type instead of ID for measurement station link
diff -r 2c4be2375f63 -r 324d349ae8d6 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java Mon May 13 11:37:14 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java Mon May 13 13:21:05 2013 +0200
@@ -30,9 +30,10 @@
this.setCanExpand(true);
Integer number = station.getID();
- String link = number != null ?
- MSG.measurement_station_url() + number :
- MSG.measurement_station_url();
+ String stationName = station.getName();
+ String stationType = station.getMeasurementType();
+ String link = MSG.measurement_station_url() +
+ stationName + stationType;
this.setLink(link);
this.setLinkText(MSG.measurement_station_info_link());
this.setCurveLink(MSG.static_sqrelation());
More information about the Dive4elements-commits
mailing list