send code errors during export to the status bar

This commit is contained in:
Ben Fry
2022-08-05 21:42:04 -04:00
parent 0ef4992621
commit 7c8557b184
2 changed files with 11 additions and 15 deletions

View File

@@ -476,24 +476,24 @@ public class JavaEditor extends Editor {
* Handler for Sketch → Export Application
*/
public void handleExportApplication() {
// toolbar.activate(JavaToolbar.EXPORT);
if (handleExportCheckModified()) {
statusNotice(Language.text("export.notice.exporting"));
try {
if (ExportPrompt.trigger(this)) {
Platform.openFolder(sketch.getFolder());
statusNotice(Language.text("export.notice.exporting.done"));
//} else {
//} else {
// error message will already be visible
// or there was no error, in which case it was canceled.
}
} catch (SketchException se) {
EventQueue.invokeLater(() -> statusError(se));
} catch (Exception e) {
statusNotice(Language.text("export.notice.exporting.error"));
e.printStackTrace();
}
}
// toolbar.deactivate(JavaToolbar.EXPORT);
}