diff flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 796:cd8603aaa730

Improved the process of creating OutputTabs. Added support for map output. flys-client/trunk@2312 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 08 Jul 2011 08:54:08 +0000
parents dfbc6693247e
children 653ae84533e7
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Thu Jul 07 15:04:45 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Fri Jul 08 08:54:08 2011 +0000
@@ -42,7 +42,6 @@
 import de.intevation.flys.client.client.services.CreateCollectionServiceAsync;
 import de.intevation.flys.client.client.services.DescribeCollectionService;
 import de.intevation.flys.client.client.services.DescribeCollectionServiceAsync;
-import de.intevation.flys.client.client.ui.chart.ChartOutputTab;
 
 
 /**
@@ -454,12 +453,12 @@
 
         GWT.log("Add new output tab for '" + name + "'");
 
-        // TODO Source this out to a factory that creates the different
-        // OutputTabs.
-        String title = messages.getString(name);
-        OutputTab tab = new ChartOutputTab(
-            title, getCollection(), out, this);
-        outputTabs.put(name, tab);
+        String title  = messages.getString(name);
+        OutputTab tab = out.createOutputTab(title, getCollection(), this);
+
+        if (tab != null) {
+            outputTabs.put(name, tab);
+        }
     }
 
 

http://dive4elements.wald.intevation.org