diff --git a/pdex/src/processing/mode/experimental/ASTGenerator.java b/pdex/src/processing/mode/experimental/ASTGenerator.java index 00758a060..d4fdbff31 100644 --- a/pdex/src/processing/mode/experimental/ASTGenerator.java +++ b/pdex/src/processing/mode/experimental/ASTGenerator.java @@ -240,7 +240,7 @@ public class ASTGenerator { /** * Toggle AST View window */ - public static final boolean SHOWAST = true; + public static final boolean SHOWAST = !true; protected DefaultMutableTreeNode buildAST(String source, CompilationUnit cu) { if (cu == null) { diff --git a/pdex/src/processing/mode/experimental/DebugEditor.java b/pdex/src/processing/mode/experimental/DebugEditor.java index cd7ce4ce6..19eaa3e79 100755 --- a/pdex/src/processing/mode/experimental/DebugEditor.java +++ b/pdex/src/processing/mode/experimental/DebugEditor.java @@ -1386,10 +1386,12 @@ public class DebugEditor extends JavaEditor implements ActionListener { public String statusMessage; public void statusMessage(final String what, int type){ // Don't re-display the old message again - if(what.equals(statusMessage) && type == statusMessageType) { - return; + if(type != STATUS_EMPTY) { + if(what.equals(statusMessage) && type == statusMessageType) { + return; + } } - statusMessage = what; + statusMessage = new String(what); statusMessageType = type; switch (type) { case STATUS_COMPILER_ERR: @@ -1401,26 +1403,15 @@ public class DebugEditor extends JavaEditor implements ActionListener { statusNotice(what); break; } -// log("SW 0"); -// final Timer t = new Timer(); -// t.schedule(new TimerTask() { -// @Override -// public void run() { -// log("SW 1"); -// statusEmpty(); -// log("SW 2"); -// t.cancel(); -// } -// }, 2000); + // Don't need to clear compiler error messages + if(type == STATUS_COMPILER_ERR) return; + + // Clear the message after a delay SwingWorker s = new SwingWorker() { - @Override protected Void doInBackground() throws Exception { - try { - log("SW 1"); Thread.sleep(2 * 1000); - log("SW 2"); } catch (InterruptedException e) { e.printStackTrace(); }