diff flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java @ 2479:057021593625

Issue 494. Added editor to create manual points with a date as x-value. flys-client/trunk@4247 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 17 Apr 2012 10:21:21 +0000
parents a1ff911e8365
children f25a3eb9785d
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java	Fri Apr 13 08:21:20 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java	Tue Apr 17 10:21:21 2012 +0000
@@ -233,8 +233,14 @@
 
     /** Open editor for custom points. */
     protected void openPointWindow() {
-        new ManualPointsEditor(chartTab.getView().getCollection(),
-            this.chartTab, this.chartTab.getMode().getName()).show();
+        if (this.chartTab.getMode().getName().equals("historical_discharge")) {
+            new ManualDatePointsEditor(chartTab.getView().getCollection(),
+                this.chartTab, this.chartTab.getMode().getName()).show();
+        }
+        else {
+            new ManualPointsEditor(chartTab.getView().getCollection(),
+                this.chartTab, this.chartTab.getMode().getName()).show();
+        }
     }
 
 

http://dive4elements.wald.intevation.org