changeset 8447:4b315e5d2d4f

(issue1733) Remove weird and broken code (fixes tab selection) This code did not make any sense to me. Why should the tabs be removed and readded. Just selecting them works.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 27 Oct 2014 12:38:22 +0100
parents 75b84f139c1b
children e98dbf72c9ec
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java
diffstat 1 files changed, 0 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java	Mon Oct 27 12:32:04 2014 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java	Mon Oct 27 12:38:22 2014 +0100
@@ -1191,16 +1191,6 @@
             filterRange.clear();
             filterResultCount.setValue("");
 
-            // Remove the tab containing the locationDistanceTable.
-            // The 'updateTab()' avoids the tab content to be destroyed.
-            inputTables.updateTab(0, null);
-            inputTables.removeTab(0);
-
-            // Create a new tab containing the locationTable
-            Tab t1 = new Tab (MESSAGES.locations());
-            t1.setPane(locationsTable);
-            inputTables.addTab(t1, 0);
-
             // Bring this tab to front.
             inputTables.selectTab(0);
         }
@@ -1211,16 +1201,6 @@
             filterRange.clear();
             filterResultCount.setValue("");
 
-            // Remove the tab containing the locationTable.
-            // The 'updateTab()' avoids the tab content to be destroyed.
-            inputTables.updateTab(0, null);
-            inputTables.removeTab(0);
-
-            // Create a new tab containing the locationDistanceTable.
-            Tab t1 = new Tab(MESSAGES.locations());
-            t1.setPane(locationDistanceTable);
-            inputTables.addTab(t1, 0);
-
             // Bring the distanceTable tab to front.
             inputTables.selectTab(1);
         }

http://dive4elements.wald.intevation.org