changeset 4848:7887112c37cc

DurationCurveState: Use RangeAccess.getLocations instead of FLYSUtils.getLocations.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 23 Jan 2013 10:42:50 +0100
parents 37112235a946
children f86c8d75fd85
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DurationCurveState.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DurationCurveState.java	Wed Jan 23 10:41:07 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DurationCurveState.java	Wed Jan 23 10:42:50 2013 +0100
@@ -8,6 +8,7 @@
 
 import de.intevation.artifactdatabase.state.Facet;
 
+import de.intevation.flys.artifacts.access.RangeAccess;
 import de.intevation.flys.artifacts.FLYSArtifact;
 import de.intevation.flys.artifacts.WINFOArtifact;
 import de.intevation.flys.artifacts.ChartArtifact;
@@ -66,10 +67,11 @@
             WQDay wqday = (WQDay)res.getData();
 
             if (wqday != null && facets != null) {
+                RangeAccess rangeAccess = new RangeAccess(winfo, context);
                 // Create an i18ed name for a (w or q) duration curve facet.
                 Object[] args = new Object[] {
                     FLYSUtils.getRiver(winfo).getName(),
-                    FLYSUtils.getLocations(winfo)[0]
+                    rangeAccess.getLocations()[0]
                 };
 
                 String nameW = Resources.getMsg(

http://dive4elements.wald.intevation.org