changeset 7311:5ac4c9119aef

issue1345: Change Sediment Density Facet label.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 14 Oct 2013 12:14:20 +0200
parents 7a7ce43ddd3f
children 349730f8a49f
files artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentDensityArtifact.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentDensityArtifact.java	Mon Oct 14 11:49:15 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentDensityArtifact.java	Mon Oct 14 12:14:20 2013 +0200
@@ -25,6 +25,7 @@
 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType;
 import org.dive4elements.river.artifacts.model.minfo.SedimentDensityFacet;
 import org.dive4elements.river.artifacts.model.minfo.SedimentDensityFactory;
+import org.dive4elements.river.artifacts.resources.Resources;
 import org.dive4elements.river.artifacts.states.StaticState;
 
 import org.dive4elements.river.artifacts.model.FacetTypes;
@@ -131,8 +132,10 @@
         String code = getDatacageIDValue(data);
 
         if (code != null) {
-            String name = SedimentDensityFactory.getSedimentDensityDescription(Integer.valueOf(code));
+            double[] depth = SedimentDensityFactory.getDepth(Integer.valueOf(code));
 
+            String name = Resources.getMsg(callMeta, "sedimentdensity", "sedimentdensity");
+            name += " " + depth[0] + " - " + depth[1] + " cm";
             Facet facet = new SedimentDensityFacet(
                 0,
                 SEDIMENT_DENSITY,

http://dive4elements.wald.intevation.org