changeset 1804:00f14b837e65

Fix incompilability. flys-artifacts/trunk@3129 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 01 Nov 2011 14:24:30 +0000
parents 51e59f221333
children 5e9696c32f04
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelInfoState.java
diffstat 2 files changed, 16 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Nov 01 12:23:59 2011 +0000
+++ b/flys-artifacts/ChangeLog	Tue Nov 01 14:24:30 2011 +0000
@@ -1,3 +1,10 @@
+2011-11-01	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	Fix incompilability.
+
+	* src/main/java/de/intevation/flys/artifacts/states/WaterlevelInfoState.java:
+	  Adjust to changed CrossSectionFacet.
+
 2011-11-01	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Minor preparations to handle multiple cross sections in one
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelInfoState.java	Tue Nov 01 12:23:59 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelInfoState.java	Tue Nov 01 14:24:30 2011 +0000
@@ -105,10 +105,16 @@
             facets.add(new ReportFacet(ComputeType.ADVANCE, hash, id));
         }
 
-        // Also register the CrossSectionFacet (added to respective out).
-        facets.add(new CrossSectionFacet(winfo.getCrossSectionName()));
+        // Also register the CrossSectionFacets (added to respective out).
+        int idx = 0;
+        for (String name: winfo.getCrossSectionNames()) {
+            facets.add(new CrossSectionFacet(idx++, name));
+        }
+
+        // TODO Adjust to WaterlevelState - implementation.
+        facets.add(new CrossSectionWaterLineFacet(0, "Q=" + winfo.getDataAsString("wq_single")));
+
         // Assume to be in wq_single mode.
-        facets.add(new CrossSectionWaterLineFacet("Q=" + winfo.getDataAsString("wq_single")));
         return res;
     }
 

http://dive4elements.wald.intevation.org