ModalDialogComponent.lookup().hide();
}
});
// Display the error in a modal dialog window.
ModalDialogComponent modalDialog = ModalDialogComponent.lookup();
modalDialog.setTitle(report.printErrorTitle());
modalDialog.setCurrentComponent(errorHandler);
modalDialog.setCloseListener(new Runnable() {
public void run() {
ErrorReportHandler errorHandler = ErrorReportHandler.lookup();
errorHandler.setErrorReport(null);
}
});
modalDialog.show();
// Force the current screen to be refreshed so the error report will be displayed.
ControllerStatus controllerStatus = ControllerStatus.lookup();
controllerStatus.setResponse(new ShowCurrentScreenResponse());
}