[PATCH 1 of 2] local merge
Wald Commits
scm-commit at wald.intevation.org
Fri May 4 16:13:24 CEST 2018
# HG changeset patch
# User gernotbelger
# Date 1525438213 -7200
# Node ID 2be202a8cb893034ba1b0d7ab41db423aad8314d
# Parent 95643dffd006411eef111c0a2b9321ed3dd1c708
local merge
diff -r 95643dffd006 -r 2be202a8cb89 artifacts/doc/conf/artifacts/sinfo.xml
--- a/artifacts/doc/conf/artifacts/sinfo.xml Fri May 04 13:36:01 2018 +0200
+++ b/artifacts/doc/conf/artifacts/sinfo.xml Fri May 04 14:50:13 2018 +0200
@@ -226,21 +226,57 @@
<transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
<from state="state.sinfo.distance_only"/>
- <to state="state.sinfo.year"/>
+ <to state="state.sinfo.year_epoch"/>
<condition data="calculation_mode" value="sinfo_calc_collision" operator="equal"/>
</transition>
- <state id="state.sinfo.year" description="state.sinfo.year" state="org.dive4elements.river.artifacts.sinfo.collision.YearChoice" helpText="help.state.sinfo.year">
- <data name="year" type="Boolean"/>
+ <state id="state.sinfo.year_epoch" description="state.sinfo.year_epoch" state="org.dive4elements.river.artifacts.sinfo.collision.YearChoice" helpText="help.state.sinfo.year">
+ <data name="ye_select" type="String"/>
</state>
+
+ <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
+ <from state="state.sinfo.year_epoch"/>
+ <to state="state.sinfo.year_select"/>
+ <condition data="ye_select" value="state.sinfo.year" operator="equal"/>
+ </transition>
+
+ <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
+ <from state="state.sinfo.year_epoch"/>
+ <to state="state.sinfo.epoch_select"/>
+ <condition data="ye_select" value="state.sinfo.epoch" operator="equal"/>
+ </transition>
+
+
+ <state id="state.sinfo.year_select" description="state.minfo.sediment.load.sq_interval"
+ state="org.dive4elements.river.artifacts.states.minfo.SedimentLoadSQTiSelect"
+ helpText="help.state.minfo.sediment.load.sq_interval">
+ <data name="sq_ti_id" type="Integer" />
+ <data name="sq_ti_date" type="String" />
+ </state>
+
+
+ <state id="state.sinfo.epoch_select" description="state.sinfo.year_epoch" state="org.dive4elements.river.artifacts.sinfo.collision.YearChoice" helpText="help.state.sinfo.year">
+ <data name="ye_select" type="String"/>
+ </state>
+
+
+
+ <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
+ <from state="state.sinfo.year_select"/>
+ <to state="state.sinfo.collision"/>
+ <condition data="calculation_mode" value="sinfo_calc_collision" operator="equal"/>
+ </transition>
+
+ <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
+ <from state="state.sinfo.epoch_select"/>
+ <to state="state.sinfo.collision"/>
+ <condition data="calculation_mode" value="sinfo_calc_collision" operator="equal"/>
+ </transition>
+
- <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
- <from state="state.sinfo.year"/>
- <to state="state.sinfo.collision"/>
- <condition data="calculation_mode" value="sinfo_calc_collision" operator="equal"/>
- </transition>
+
<state id="state.sinfo.collision" description="state.sinfo.collision" state="org.dive4elements.river.artifacts.sinfo.collision.CollisionState" helpText="help.state.sinfo.collision">
<outputmodes>
diff -r 95643dffd006 -r 2be202a8cb89 artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/collision/YearChoice.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/collision/YearChoice.java Fri May 04 13:36:01 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/collision/YearChoice.java Fri May 04 14:50:13 2018 +0200
@@ -8,16 +8,27 @@
package org.dive4elements.river.artifacts.sinfo.collision;
-import org.dive4elements.river.artifacts.states.BooleanChoiceState;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.dive4elements.river.artifacts.states.RadioSelect;
/**
* @author <a href="mailto:ingo.weinzierl at intevation.de">Ingo Weinzierl</a>
*/
-public class YearChoice extends BooleanChoiceState {
-
+public class YearChoice extends RadioSelect {
private static final long serialVersionUID = 1L;
public YearChoice() {
- super("option", "active", "inactive"); // TODO: RADIO-Btn-Impl
+ super();
+ }
+
+ @Override
+ protected List<String> makeEntries() {
+ final List<String> entries = new ArrayList<>();
+ entries.add("state.sinfo.year");
+ entries.add("state.sinfo.epoch");
+ return entries;
+
}
}
\ No newline at end of file
diff -r 95643dffd006 -r 2be202a8cb89 artifacts/src/main/resources/messages.properties
--- a/artifacts/src/main/resources/messages.properties Fri May 04 13:36:01 2018 +0200
+++ b/artifacts/src/main/resources/messages.properties Fri May 04 14:50:13 2018 +0200
@@ -75,6 +75,13 @@
state.minfo.t_per_a = t/a
state.minfo.m3_per_a = m\u00b3/a
+state.sinfo.year_epoch = Year/Epoch
+state.sinfo.year=Year
+state.sinfo.epoch=Epoch
+state.sinfo.riverside.left = Linkes Ufer
+state.sinfo.riverside.right = Rechtes Ufer
+state.sinfo.riverside.both = Beide Ufer
+
year=Year
epoch=Epoch
off_epoch = off. Epochs
More information about the Dive4Elements-commits
mailing list