changeset 76:731a2f32978c trimmed_data

Alert on KML export failure
author Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
date Wed, 16 Jan 2013 14:35:27 +0100
parents d69066d16e45
children e8f0780b1b6d
files src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java	Tue Jan 15 16:32:25 2013 +0100
+++ b/src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java	Wed Jan 16 14:35:27 2013 +0100
@@ -11,6 +11,7 @@
 import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
 import com.google.gwt.user.cellview.client.SimplePager;
 import com.google.gwt.user.cellview.client.TextColumn;
+import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.ui.Anchor;
 import com.google.gwt.user.client.ui.Button;
@@ -614,10 +615,7 @@
 		exportWriter.writeKMLFile(kmlContent, 
 									new AsyncCallback<String>() {
             							public void onFailure(Throwable caught) {
-            								//TODO: error message in layover?
-            								//there needs to be an error-window for KML parser failures anyway
-            								//this one should be used
-            								int i = 1;
+            								Window.alert("KML creation failed.");
             							}
             							public void onSuccess(String exportFileName) {