Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java @ 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 | d4330439be3a |
children | ecb76933362f |
comparison
equal
deleted
inserted
replaced
2306:cc6b8af44728 | 2307:51f530476e36 |
---|---|
55 } | 55 } |
56 | 56 |
57 WWQQ [] wws = (WWQQ [])res.getData(); | 57 WWQQ [] wws = (WWQQ [])res.getData(); |
58 | 58 |
59 for (int i = 0; i < wws.length; ++i) { | 59 for (int i = 0; i < wws.length; ++i) { |
60 String wwsName = wws[i].getName(); | |
60 facets.add(new ReferenceCurveFacet(i, | 61 facets.add(new ReferenceCurveFacet(i, |
61 REFERENCE_CURVE, | 62 REFERENCE_CURVE, |
62 Resources.getMsg(context.getMeta(), REFERENCE_CURVE, REFERENCE_CURVE))); | 63 wwsName |
64 )); | |
63 facets.add(new ReferenceCurveFacet(i, | 65 facets.add(new ReferenceCurveFacet(i, |
64 REFERENCE_CURVE_NORMALIZED, | 66 REFERENCE_CURVE_NORMALIZED, |
65 Resources.getMsg( | 67 wwsName |
66 context.getMeta(), | 68 )); |
67 REFERENCE_CURVE_NORMALIZED, REFERENCE_CURVE_NORMALIZED))); | |
68 } | 69 } |
69 | 70 |
70 if (wws.length > 0) { | 71 if (wws.length > 0) { |
71 // TODO: Add CSV/PDF facets. | 72 // TODO: Add CSV/PDF facets. |
72 logger.debug("Adding CSV data facet."); | 73 logger.debug("Adding CSV data facet."); |