[Dive4elements-commits] [PATCH 04 of 19] DurationCurveState: Use RangeAccess.getLocations instead of FLYSUtils.getLocations
Wald Commits
scm-commit at wald.intevation.org
Thu Jan 24 14:14:16 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1358934170 -3600
# Node ID 7887112c37ccd6ee83c237c14c078e9979defcdf
# Parent 37112235a9466150cf23bfe32f5dcb74e7f4115e
DurationCurveState: Use RangeAccess.getLocations instead of FLYSUtils.getLocations.
diff -r 37112235a946 -r 7887112c37cc flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DurationCurveState.java
--- 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(
More information about the Dive4elements-commits
mailing list