Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-export-widget@95770 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-05-16 12:26:04 +00:00
parent 04dc65c61a
commit 8868c76e9b
1 changed files with 15 additions and 6 deletions

View File

@ -160,12 +160,21 @@ public class CSVOperationInProgressCard extends WizardCard implements
public void operationFailed(Throwable caught, String reason, public void operationFailed(Throwable caught, String reason,
String failureDetails) { String failureDetails) {
AlertMessageBox d = new AlertMessageBox("Error in CSV Export", reason); if (caught instanceof TDGWTSessionExpiredException) {
d.addHideHandler(new HideHandler() { getEventBus()
public void onHide(HideEvent event) { .fireEvent(
} new SessionExpiredEvent(
}); SessionExpiredType.EXPIREDONSERVER));
d.show(); } else {
AlertMessageBox d = new AlertMessageBox("Error in CSV Export",
reason);
d.addHideHandler(new HideHandler() {
public void onHide(HideEvent event) {
}
});
d.show();
}
} }
@Override @Override