changeset 2483:f9a7a5ae914c

Open the ManualDatePointsEditor from context menu if chart is a historical discharge chart. flys-client/trunk@4258 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 18 Apr 2012 08:10:17 +0000
parents cef4c624c68c
children 6f30bbd98618
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Apr 17 14:40:19 2012 +0000
+++ b/flys-client/ChangeLog	Wed Apr 18 08:10:17 2012 +0000
@@ -1,3 +1,8 @@
+2012-04-18  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java:
+	  Open the ManualDatePointsEditor from context menu.
+
 2012-04-17	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java	Tue Apr 17 14:40:19 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java	Wed Apr 18 08:10:17 2012 +0000
@@ -308,8 +308,16 @@
         
         editManualPoints.addClickHandler(new ClickHandler() {
                 public void onClick(MenuItemClickEvent evt) {
-                    new ManualPointsEditor(view.getCollection(),
-                        redrawRequestHandlers.get(0), mode.getName()).show();
+                    if(mode.getName().equals("historical_discharge")) {
+                        new ManualDatePointsEditor(view.getCollection(),
+                            redrawRequestHandlers.get(0),
+                            mode.getName()).show();
+                    }
+                    else {
+                        new ManualPointsEditor(view.getCollection(),
+                            redrawRequestHandlers.get(0),
+                            mode.getName()).show();
+                    }
                 }
             });
         menu.addItem(editManualPoints);

http://dive4elements.wald.intevation.org