mirror of
https://github.com/processing/processing4.git
synced 2026-01-27 10:21:26 +01:00
send code errors during export to the status bar
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user