}
void showError(Throwable t) {
- showAlert(new Alert("Error", t.getMessage(), null, AlertType.ERROR));
+ showError(t.getMessage());
}
+ void showError(String message) {
+ showAlert(new Alert("Error", message, null, AlertType.ERROR));
+ }
+
private void showAlert(Alert alert) {
Display display = Display.getDisplay(this);
display.setCurrent(alert, canvas);