mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
work boogers
This commit is contained in:
@@ -908,6 +908,12 @@ public class PdeEditor extends JPanel {
|
||||
|
||||
if (sketchModified) {
|
||||
status.prompt("Save changes to " + sketchName + "?");
|
||||
//while ((status.mode == PdeEditorStatus.EDIT) ||
|
||||
// (status.mode == PdeEditorStatus.PROMPT)) {
|
||||
//try {
|
||||
//Thread.sleep(10);
|
||||
//} catch (InterruptedException e) { }
|
||||
//}
|
||||
|
||||
} else {
|
||||
checkModified2();
|
||||
|
||||
@@ -163,6 +163,8 @@ public class PdeEditorStatus extends Panel
|
||||
*/
|
||||
|
||||
public void prompt(String message) {
|
||||
//System.out.println("prompting...");
|
||||
|
||||
mode = PROMPT;
|
||||
this.message = message;
|
||||
|
||||
|
||||
@@ -76,9 +76,6 @@ public class PdeRuntime implements PdeMessageConsumer {
|
||||
new PdeMessageSiphon(process.getErrorStream(), this);
|
||||
} else {
|
||||
Class c = Class.forName(className);
|
||||
|
||||
// to get rid of KjcEngine [fry]
|
||||
//applet = (KjcApplet) c.newInstance();
|
||||
applet = (BApplet) c.newInstance();
|
||||
|
||||
// replaces setRuntime with BApplet having leechErr [fry]
|
||||
@@ -265,6 +262,7 @@ public class PdeRuntime implements PdeMessageConsumer {
|
||||
//System.out.println();
|
||||
}
|
||||
|
||||
|
||||
public void close() {
|
||||
//if (window != null) window.hide();
|
||||
if (window != null) {
|
||||
@@ -274,7 +272,9 @@ public class PdeRuntime implements PdeMessageConsumer {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void message(String s) {
|
||||
//System.err.println("message " + s.length() + ":" + s);
|
||||
if (s.indexOf(BApplet.LEECH_WAKEUP) == 0) {
|
||||
newMessage = true;
|
||||
return; // this line ignored
|
||||
|
||||
Reference in New Issue
Block a user