Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/GaugeDischargeCurveArtifact.java @ 4164:8d3e8cb54e4c
Add data for the gauge name to the GaugeDischargeCurveArtifact
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Wed, 17 Oct 2012 09:58:24 +0200 |
parents | bbae306fcb4f |
children | 79878efbdf07 |
comparison
equal
deleted
inserted
replaced
4163:2b4f78ccfbaa | 4164:8d3e8cb54e4c |
---|---|
80 String gaugename = ""; | 80 String gaugename = ""; |
81 if (gauge != null) { | 81 if (gauge != null) { |
82 gaugename = gauge.getName(); | 82 gaugename = gauge.getName(); |
83 } | 83 } |
84 | 84 |
85 addData("gauge_name", new DefaultStateData("gauge_name", | |
86 Resources.getMsg(callmeta, | |
87 "facet.gauge_discharge_curve.gauge_name", | |
88 "Name of the gauge"), | |
89 "String", gaugename)); | |
90 | |
85 String description = Resources.format(callmeta, | 91 String description = Resources.format(callmeta, |
86 "facet.gauge_discharge_curve.description", | 92 "facet.gauge_discharge_curve.description", |
87 "Discharge curve on gauge", | 93 "Discharge curve on gauge", |
88 rivername, | 94 rivername, |
89 gaugename); | 95 gaugename); |