[PATCH] "Darstellungsbereich" statt "Berechnungsstrecke" jetzt auch für Uinfo.Vegetationszonen (vorher nur Uinfo.Ü'DauernAue)

Wald Commits scm-commit at wald.intevation.org
Fri Sep 7 11:50:19 CEST 2018


# HG changeset patch
# User gernotbelger
# Date 1536313815 -7200
# Node ID 76e8f13d6027a2f9d6758c178c7672a607b82dab
# Parent  45908b79c0792c266329f62bc899c3d83a41a5f6
"Darstellungsbereich" statt "Berechnungsstrecke" jetzt auch für Uinfo.Vegetationszonen (vorher nur Uinfo.Ü'DauernAue)

diff -r 45908b79c079 -r 76e8f13d6027 artifacts/doc/conf/artifacts/uinfo.xml
--- a/artifacts/doc/conf/artifacts/uinfo.xml	Thu Sep 06 18:02:02 2018 +0200
+++ b/artifacts/doc/conf/artifacts/uinfo.xml	Fri Sep 07 11:50:15 2018 +0200
@@ -15,7 +15,7 @@
       <data name="calculation_mode" type="String"/>
     </state>
 
-    <state id="state.uinfo.distance_only" description="state.uinfo.distance_only" state="org.dive4elements.river.artifacts.states.DistanceOnlySelect" helpText="help.state.uinfo.vegetationzone.distance_only">
+    <state id="state.uinfo.veg.distance_only" description="state.uinfo.veg.distance_only" state="org.dive4elements.river.artifacts.states.DistanceOnlyInundationDurVegSelect"  helpText="help.state.uinfo.vegetationzone.distance_only">
       <data name="ld_from" type="Double"/>
       <data name="ld_to" type="Double"/>
     </state>
@@ -24,7 +24,7 @@
       <data name="ld_from" type="Double"/>
       <data name="ld_to" type="Double"/>
     </state>
-    <state id="state.uinfo.inundationduration.distance_only" description="state.uinfo.inundationduration.distance_only" state="org.dive4elements.river.artifacts.states.DistanceOnlyInundationDurSelect" helpText="help.state.uinfo.inundation_duration.location">
+    <state id="state.uinfo.inundationduration.distance_only" description="state.uinfo.inundationduration.distance_only" state="org.dive4elements.river.artifacts.states.DistanceOnlyInundationDurVegSelect" helpText="help.state.uinfo.inundation_duration.location">
       <data name="ld_from" type="Double"/>
       <data name="ld_to" type="Double"/>
     </state>
@@ -315,12 +315,12 @@
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
       <from state="state.uinfo.calculation_mode"/>
-      <to state="state.uinfo.distance_only"/>
+      <to state="state.uinfo.veg.distance_only"/>
       <condition data="calculation_mode" value="uinfo_vegetation_zones" operator="equal"/>
     </transition>
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
-      <from state="state.uinfo.distance_only"/>
+      <from state="state.uinfo.veg.distance_only"/>
       <to state="state.uinfo.vegetation_zones.table"/>
       <condition data="calculation_mode" value="uinfo_vegetation_zones" operator="equal"/>
     </transition>
diff -r 45908b79c079 -r 76e8f13d6027 artifacts/src/main/java/org/dive4elements/river/artifacts/states/DistanceOnlyInundationDurSelect.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/DistanceOnlyInundationDurSelect.java	Thu Sep 06 18:02:02 2018 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
- * Software engineering by Intevation GmbH
- *
- * This file is Free Software under the GNU AGPL (>=v3)
- * and comes with ABSOLUTELY NO WARRANTY! Check out the
- * documentation coming with Dive4Elements River for details.
- */
-
-package org.dive4elements.river.artifacts.states;
-
-import org.dive4elements.artifacts.CallContext;
-import org.dive4elements.river.artifacts.resources.Resources;
-
-public class DistanceOnlyInundationDurSelect extends DistanceOnlySelect {
-    @Override
-    protected String getTitle(final CallContext context) {
-        // REMARK: that is how it should be: return Resources.getMsg(context.getMeta(), getID());
-        return Resources.getMsg(context.getMeta(), "state.title.distance_only_inundationduration_state");
-    }
-
-}
-// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :
diff -r 45908b79c079 -r 76e8f13d6027 artifacts/src/main/java/org/dive4elements/river/artifacts/states/DistanceOnlyInundationDurVegSelect.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/DistanceOnlyInundationDurVegSelect.java	Fri Sep 07 11:50:15 2018 +0200
@@ -0,0 +1,22 @@
+/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU AGPL (>=v3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out the
+ * documentation coming with Dive4Elements River for details.
+ */
+
+package org.dive4elements.river.artifacts.states;
+
+import org.dive4elements.artifacts.CallContext;
+import org.dive4elements.river.artifacts.resources.Resources;
+
+public class DistanceOnlyInundationDurVegSelect extends DistanceOnlySelect {
+    @Override
+    protected String getTitle(final CallContext context) {
+        // REMARK: that is how it should be: return Resources.getMsg(context.getMeta(), getID());
+        return Resources.getMsg(context.getMeta(), "state.title.distance_only_inundationduration_veg_state");
+    }
+
+}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :
diff -r 45908b79c079 -r 76e8f13d6027 artifacts/src/main/resources/messages.properties
--- a/artifacts/src/main/resources/messages.properties	Thu Sep 06 18:02:02 2018 +0200
+++ b/artifacts/src/main/resources/messages.properties	Fri Sep 07 11:50:15 2018 +0200
@@ -1124,7 +1124,7 @@
 help.state.uinfo.vegetationzone.distance_only = ${help.url}/OnlineHilfe/UINFO#help.state.uinfo.vegetationzone.distance_only
 
 state.uinfo.salix.distance_only = Calculation Range Choice
-state.uinfo.distance_only = Choose Calculation Range [km]
+state.uinfo.veg.distance_only = Display Area Choice
 state.uinfo.inundationduration.distance_only = Display Area Choice
 help.state.uinfo.distance_only = ${help.url}/OnlineHilfe/UINFO#help.state.uinfo.distance_only
 help.state.uinfo.inundation.year_totalepoch = ${help.url}/OnlineHilfe/UINFO#help.state.uinfo.inundation.year_totalepoch
@@ -1337,4 +1337,4 @@
 state.title.distance_part_state = Select Sub-range
 state.title.salix.historical.distance_part_state =  Select Sub-range
 state.title.uinfo.bezugswst.miss_vol.distance_part_state = Choose sub-range for the missing depths to be calculated [km]
-state.title.distance_only_inundationduration_state = Choose Display Area [km]
\ No newline at end of file
+state.title.distance_only_inundationduration_veg_state = Choose Display Area [km]
\ No newline at end of file
diff -r 45908b79c079 -r 76e8f13d6027 artifacts/src/main/resources/messages_de.properties
--- a/artifacts/src/main/resources/messages_de.properties	Thu Sep 06 18:02:02 2018 +0200
+++ b/artifacts/src/main/resources/messages_de.properties	Fri Sep 07 11:50:15 2018 +0200
@@ -1124,7 +1124,7 @@
 help.state.uinfo.vegetationzone.distance_only = ${help.url}/OnlineHilfe/UINFO#help.state.uinfo.vegetationzone.distance_only
 
 state.uinfo.salix.distance_only = Wahl der Berechnungsstrecke
-state.uinfo.distance_only = Wahl der Berechnungsstrecke
+state.uinfo.veg.distance_only = Wahl des Darstellungsbereichs
 state.uinfo.inundationduration.distance_only = Wahl des Darstellungsbereichs
 help.state.uinfo.distance_only = ${help.url}/OnlineHilfe/SINFO#help.state.sinfo.distance_only
 help.state.uinfo.inundation.year_totalepoch = ${help.url}/OnlineHilfe/UINFO#help.state.uinfo.inundation.year_totalepoch
@@ -1337,4 +1337,4 @@
 state.title.distance_part_state = Festlegen eines Teilabschnitts
 state.title.salix.historical.distance_part_state = Festlegen eines Teilabschnitts
 state.title.uinfo.bezugswst.miss_vol.distance_part_state = Strecke der zu ermittelnden Fehltiefen w\u00e4hlen [km]
-state.title.distance_only_inundationduration_state = Darstellungsbereich w\u00e4hlen [km]
\ No newline at end of file
+state.title.distance_only_inundationduration_veg_state = Darstellungsbereich w\u00e4hlen [km]
\ No newline at end of file


More information about the Dive4Elements-commits mailing list