changeset 1184:7552ae1061d7

Fix build. flys-artifacts/trunk@2777 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 16 Sep 2011 11:37:43 +0000
parents 9c1cda9e2bc4
children c5f494a9749d
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WDifferencesState.java
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Sep 16 11:30:50 2011 +0000
+++ b/flys-artifacts/ChangeLog	Fri Sep 16 11:37:43 2011 +0000
@@ -1,3 +1,10 @@
+2011-09-16  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+ Fix build.
+
+	* src/main/java/de/intevation/flys/artifacts/state/WDifferencesState.java:
+	  Fix build.
+
 2011-09-16  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
  Take a given WaterlevelPair-String, load artifact and plot the diff.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WDifferencesState.java	Fri Sep 16 11:30:50 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WDifferencesState.java	Fri Sep 16 11:37:43 2011 +0000
@@ -8,6 +8,7 @@
 
 import de.intevation.artifactdatabase.state.Facet;
 
+import de.intevation.artifacts.Artifact;
 import de.intevation.flys.artifacts.FLYSArtifact;
 import de.intevation.flys.artifacts.WINFOArtifact;
 
@@ -19,6 +20,7 @@
 
 import de.intevation.flys.artifacts.model.DataFacet;
 import de.intevation.flys.artifacts.model.WaterlevelFacet;
+import de.intevation.artifactdatabase.data.StateData;
 
 import de.intevation.flys.utils.FLYSUtils;
 
@@ -75,11 +77,11 @@
         // Load the Artifacts/facets that we want to subtract and display.
         // Expected format is:
         // [42537f1e-3522-42ef-8968-635b03d8e9c6;longitudinal_section.w;0]#[1231f2-....]
-        String datas[] = winfo.getDataAsString("diffids");
+        String datas[] = winfo.getDataAsString("diffids").split("#");
 
         // Validate the Data-Strings.
         for (String s: datas) {
-            if (!WaterlevelSelectState.isValid(winfo.getDataAsString("diffids"))) {
+            if (!WaterlevelSelectState.isValueValid(winfo.getDataAsString("diffids"))) {
                 // TODO: escalate.
             }
         }

http://dive4elements.wald.intevation.org