Mercurial > dive4elements > river
changeset 1705:2c643a643026
Addressed 'wrong label' issue of wdiff csv-export.
flys-artifacts/trunk@2949 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 12 Oct 2011 11:01:41 +0000 |
parents | e8627d1e2db6 |
children | f7813b0c68ff |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesExporter.java |
diffstat | 2 files changed, 15 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Wed Oct 12 10:59:12 2011 +0000 +++ b/flys-artifacts/ChangeLog Wed Oct 12 11:01:41 2011 +0000 @@ -1,3 +1,12 @@ +2011-10-12 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + Addressed "Wrong labels" [6] part of flys/issue371 (W-INFO / Differenzen: + Anmerkungen zur Umsetzung) . + + * src/main/java/de/intevation/flys/exports/WDifferencesExporter.java: + Adjusted variable names to avoid conflict in subclasses, adjusted + default value for i18n string. + 2011-10-12 Felix Wolfsteller <felix.wolfsteller@intevation.de> Cosmetics, docs.
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesExporter.java Wed Oct 12 10:59:12 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesExporter.java Wed Oct 12 11:01:41 2011 +0000 @@ -28,14 +28,14 @@ private static Logger logger = Logger.getLogger(WDifferencesExporter.class); - public static final String CSV_KM_HEADER = + public static final String WDIFF_CSV_KM_HEADER = "export.w_differences.csv.header.km"; - public static final String CSV_W_HEADER = + public static final String WDIFF_CSV_W_HEADER = "export.w_differences.csv.header.w"; - public static final String DEFAULT_CSV_KM_HEADER = "Fluss-Km"; - public static final String DEFAULT_CSV_W_HEADER = "W [NN + m]"; + public static final String WDIFF_DEFAULT_CSV_KM_HEADER = "Fluss-Km"; + public static final String WDIFF_DEFAULT_CSV_W_HEADER = "m"; /** The storage that contains all WKms objects for the different facets. */ @@ -116,8 +116,8 @@ logger.info("WDifferencesExporter.writeCSVHeader"); writer.writeNext(new String[] { - msg(CSV_KM_HEADER, DEFAULT_CSV_KM_HEADER), - msg(CSV_W_HEADER, DEFAULT_CSV_W_HEADER) + msg(WDIFF_CSV_KM_HEADER, WDIFF_DEFAULT_CSV_KM_HEADER), + msg(WDIFF_CSV_W_HEADER, WDIFF_DEFAULT_CSV_W_HEADER) }); }