[PATCH 3 of 5] issue1345: Change Sediment Density Facet label
Wald Commits
scm-commit at wald.intevation.org
Mon Oct 14 12:09:25 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1381745660 -7200
# Node ID 5ac4c9119aefe4f4601f09461cb3399d3c3a7492
# Parent 7a7ce43ddd3f69eac3254d441c4a543224c0e284
issue1345: Change Sediment Density Facet label.
diff -r 7a7ce43ddd3f -r 5ac4c9119aef artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentDensityArtifact.java
--- 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,
More information about the Dive4elements-commits
mailing list