changeset 7636:003502ea4854

issue1020: Handle FixRealizingResult for UESK waterlevel-selection.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 03 Dec 2013 12:25:03 +0100
parents 0426c1efd680
children 49a92f7e2017
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/WaterlevelSelectState.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/WaterlevelSelectState.java	Tue Dec 03 12:55:17 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/WaterlevelSelectState.java	Tue Dec 03 12:25:03 2013 +0100
@@ -24,6 +24,7 @@
 import org.dive4elements.river.artifacts.model.CalculationResult;
 import org.dive4elements.river.artifacts.model.WQKms;
 import org.dive4elements.river.artifacts.model.extreme.ExtremeResult;
+import org.dive4elements.river.artifacts.model.fixings.FixRealizingResult;
 import org.dive4elements.river.artifacts.resources.Resources;
 import org.dive4elements.river.utils.RiverUtils;
 import org.dive4elements.river.utils.StringUtil;
@@ -142,6 +143,9 @@
             if (calcResult.getData() instanceof ExtremeResult) {
                 wqkms = ((ExtremeResult) calcResult.getData()).getWQKms();
             }
+            else if (calcResult.getData() instanceof FixRealizingResult) {
+                wqkms = ((FixRealizingResult) calcResult.getData()).getWQKms();
+            }
             else {
                 wqkms = (WQKms[]) calcResult.getData();
             }

http://dive4elements.wald.intevation.org