changeset 7108:54fa03dad18c generator-refactoring

Default to the label of longitundial Q axis in the QProcessor
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 24 Sep 2013 11:28:29 +0200
parents 564033adf9c6
children 9e2c7e0ffc63
files artifacts/src/main/java/org/dive4elements/river/exports/process/QOutProcessor.java
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/QOutProcessor.java	Tue Sep 24 11:27:28 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/QOutProcessor.java	Tue Sep 24 11:28:29 2013 +0200
@@ -81,11 +81,8 @@
 
     @Override
     public String getAxisLabel(DiagramGenerator generator) {
-        if (generator.getOutName().startsWith("longitudinal_section")) {
-            return generator.msg(I18N_LONGITUDINAL_LABEL,
-                    I18N_LONGITUDINAL_LABEL_DEFAULT);
-        }
-        return "Please overwrite me in the implementation";
+        return generator.msg(I18N_LONGITUDINAL_LABEL,
+                I18N_LONGITUDINAL_LABEL_DEFAULT);
     }
 
     /**

http://dive4elements.wald.intevation.org