From 852ae20fca98936a0deae882b292cfb72623f048 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Tue, 11 Feb 2014 13:41:15 +0000 Subject: [PATCH] Minor Update git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@91376 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../progress/ChangeColumnTypeProgressDialog.java | 13 +------------ .../progress/ChangeColumnTypeProgressUpdater.java | 6 +----- .../client/progress/DeleteColumnProgressDialog.java | 10 ---------- .../progress/DeleteColumnProgressUpdater.java | 10 +++------- 4 files changed, 5 insertions(+), 34 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/ChangeColumnTypeProgressDialog.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/ChangeColumnTypeProgressDialog.java index 3b026fb..ef4e117 100644 --- a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/ChangeColumnTypeProgressDialog.java +++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/ChangeColumnTypeProgressDialog.java @@ -106,18 +106,7 @@ public class ChangeColumnTypeProgressDialog extends Window implements ChangeColu public void operationFailed(Throwable caught, String reason, String failureDetails) { ok.setVisible(true); - this.trId=null; - AlertMessageBox d = new AlertMessageBox("Error in Change Column Type", reason); - d.addHideHandler(new HideHandler() { - - public void onHide(HideEvent event) { - - } - - }); - d.show(); - - + this.trId=null; } public void updateInvocation(){ diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/ChangeColumnTypeProgressUpdater.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/ChangeColumnTypeProgressUpdater.java index 9d1864f..ebbf5fc 100644 --- a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/ChangeColumnTypeProgressUpdater.java +++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/ChangeColumnTypeProgressUpdater.java @@ -105,18 +105,14 @@ public class ChangeColumnTypeProgressUpdater extends Timer { failure = "Failed Client Library Chanche Column Type"; details = "Error Change Column Type"; } - fireOperationFailed(th, failure, details); AlertMessageBox d = new AlertMessageBox("Error in Change Column Type", details); d.addHideHandler(new HideHandler() { - public void onHide(HideEvent event) { - } - }); d.show(); - + fireOperationFailed(th, failure, details); } protected String getStack(Throwable e) { diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/DeleteColumnProgressDialog.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/DeleteColumnProgressDialog.java index 242f0a7..c3ce91c 100644 --- a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/DeleteColumnProgressDialog.java +++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/DeleteColumnProgressDialog.java @@ -107,16 +107,6 @@ public class DeleteColumnProgressDialog extends Window implements DeleteColumnPr String failureDetails) { ok.setVisible(true); this.trId=null; - AlertMessageBox d = new AlertMessageBox("Error in Delete Column", reason); - d.addHideHandler(new HideHandler() { - - public void onHide(HideEvent event) { - - } - - }); - d.show(); - } public void updateInvocation(){ diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/DeleteColumnProgressUpdater.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/DeleteColumnProgressUpdater.java index 5290908..71c9943 100644 --- a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/DeleteColumnProgressUpdater.java +++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/progress/DeleteColumnProgressUpdater.java @@ -105,18 +105,14 @@ public class DeleteColumnProgressUpdater extends Timer { failure = "Failed Client Library Delete Column"; details = "Error Delete Column"; } - fireOperationFailed(th, failure, details); - + AlertMessageBox d = new AlertMessageBox("Error in Delete Column", details); d.addHideHandler(new HideHandler() { - - public void onHide(HideEvent event) { - + public void onHide(HideEvent event) { } - }); d.show(); - + fireOperationFailed(th, failure, details); } protected String getStack(Throwable e) {