[Dive4elements-commits] [PATCH 1 of 2] Add link for info about the measurement station

Wald Commits scm-commit at wald.intevation.org
Mon Oct 29 10:39:37 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1351502829 -3600
# Node ID 6589f1c9510170076c9e4fa83f166da9a84a99f7
# Parent  6aa8cd8da22443c9c2d9e47cc42194ff0585096f
Add link for info about the measurement station

diff -r 6aa8cd8da224 -r 6589f1c95101 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Mon Oct 29 10:04:56 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Mon Oct 29 10:27:09 2012 +0100
@@ -1072,6 +1072,10 @@
 
     String measurement_station_start_time();
 
+    String measurement_station_url();
+
+    String measurement_station_info_link();
+
     String discharge_timeranges();
 
     String discharge_chart();
diff -r 6aa8cd8da224 -r 6589f1c95101 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Mon Oct 29 10:04:56 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Mon Oct 29 10:27:09 2012 +0100
@@ -559,3 +559,5 @@
 measurement_station_type = Type of Measurement Station
 measurement_station_operator = Operator
 measurement_station_start_time = Observation Start Time
+measurement_station_url = https://flys-intern.intevation.de/MessstellenInfo/
+measurement_station_info_link = Measurement Station Info
diff -r 6aa8cd8da224 -r 6589f1c95101 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Mon Oct 29 10:04:56 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Mon Oct 29 10:27:09 2012 +0100
@@ -557,3 +557,5 @@
 measurement_station_type = Typ der Messstelle
 measurement_station_operator = Operator
 measurement_station_start_time = Beobachtungsstart
+measurement_station_url = https://flys-intern.intevation.de/MessstellenInfo/
+measurement_station_info_link = Messstelleninfo
diff -r 6aa8cd8da224 -r 6589f1c95101 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Mon Oct 29 10:04:56 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Mon Oct 29 10:27:09 2012 +0100
@@ -558,3 +558,5 @@
 measurement_station_type = Type of Measurement Station
 measurement_station_operator = Operator
 measurement_station_start_time = Observation Start Time
+measurement_station_url = https://flys-intern.intevation.de/MessstellenInfo/
+measurement_station_info_link = Measurement Station Info
diff -r 6aa8cd8da224 -r 6589f1c95101 flys-client/src/main/java/de/intevation/flys/client/client/ui/MeasurementStationTree.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/MeasurementStationTree.java	Mon Oct 29 10:04:56 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/MeasurementStationTree.java	Mon Oct 29 10:27:09 2012 +0100
@@ -163,12 +163,13 @@
                 addMember(label);
             }
 
-            /* Long number = gauge.getOfficialNumber(); */
-            /* String url = number != null ? */
-            /*     MSG.gauge_url() + number : */
-            /*     MSG.gauge_url(); */
-            /* Anchor anchor = new Anchor(MSG.gauge_info_link(), url, "_blank"); */
-            /* addMember(anchor); */
+            Integer number = station.getID();
+            String url = number != null ?
+                MSG.measurement_station_url() + number :
+                MSG.measurement_station_url();
+            Anchor anchor = new Anchor(MSG.measurement_station_info_link(),
+                    url, "_blank");
+            addMember(anchor);
         }
     }
 


More information about the Dive4elements-commits mailing list