[PATCH 3 of 9] Default to the label of longitundial Q axis in the QProcessor

Wald Commits scm-commit at wald.intevation.org
Tue Sep 24 11:44:00 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1380014909 -7200
# Branch generator-refactoring
# Node ID 54fa03dad18cf1b61788420476421ffc2314bb7f
# Parent  564033adf9c64bd61919ab6b25e3500076dbeb26
Default to the label of longitundial Q axis in the QProcessor

diff -r 564033adf9c6 -r 54fa03dad18c artifacts/src/main/java/org/dive4elements/river/exports/process/QOutProcessor.java
--- 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);
     }
 
     /**


More information about the Dive4elements-commits mailing list