changeset 593:c0477626ae6a

#156 Do not display report modes as tabs in the project view. flys-client/trunk@2189 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 21 Jun 2011 17:29:18 +0000
parents f8f8982e2d5c
children 646cf09dabf2
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Jun 21 17:18:47 2011 +0000
+++ b/flys-client/ChangeLog	Tue Jun 21 17:29:18 2011 +0000
@@ -1,3 +1,10 @@
+2011-06-21  Ingo Weinzierl <ingo@intevation.de>
+
+	  flys/issue156 (WINFO: Platzierung des Berechnungsberichtes)
+
+	* src/main/java/de/intevation/flys/client/client/ui/CollectionView.java:
+	  Do not display report modes as tabs.
+
 2011-06-21  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/SelectProvider.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Tue Jun 21 17:18:47 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Tue Jun 21 17:29:18 2011 +0000
@@ -22,6 +22,7 @@
 import de.intevation.flys.client.shared.model.Collection;
 import de.intevation.flys.client.shared.model.ExportMode;
 import de.intevation.flys.client.shared.model.OutputMode;
+import de.intevation.flys.client.shared.model.ReportMode;
 import de.intevation.flys.client.shared.model.User;
 
 import de.intevation.flys.client.client.Config;
@@ -431,6 +432,11 @@
             return;
         }
 
+        if (out instanceof ReportMode) {
+            // we don't want to display report modes at all
+            return;
+        }
+
         GWT.log("Add new output tab for '" + name + "'");
 
         // TODO Source this out to a factory that creates the different

http://dive4elements.wald.intevation.org