changeset 2307:51f530476e36

Better description for reference curve facets (seen in client). flys-artifacts/trunk@3981 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 08 Feb 2012 16:51:15 +0000
parents cc6b8af44728
children 41a5c87c2761
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Feb 08 16:12:15 2012 +0000
+++ b/flys-artifacts/ChangeLog	Wed Feb 08 16:51:15 2012 +0000
@@ -1,3 +1,9 @@
+2012-02-08  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java:
+	  Give (Normalized)ReferenceCurveFacets are more approriate
+	  description (to be seen in client).
+
 2012-02-08  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Prepare Reference curves to eat multiple locations as 'Ziel'.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java	Wed Feb 08 16:12:15 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java	Wed Feb 08 16:51:15 2012 +0000
@@ -57,14 +57,15 @@
         WWQQ [] wws = (WWQQ [])res.getData();
 
         for (int i = 0; i < wws.length; ++i) {
+            String wwsName = wws[i].getName();
             facets.add(new ReferenceCurveFacet(i,
                 REFERENCE_CURVE,
-                Resources.getMsg(context.getMeta(), REFERENCE_CURVE, REFERENCE_CURVE)));
+                wwsName
+                ));
             facets.add(new ReferenceCurveFacet(i,
                 REFERENCE_CURVE_NORMALIZED,
-                Resources.getMsg(
-                    context.getMeta(),
-                    REFERENCE_CURVE_NORMALIZED, REFERENCE_CURVE_NORMALIZED)));
+                wwsName
+                ));
         }
 
         if (wws.length > 0) {

http://dive4elements.wald.intevation.org