From 0a2f2662cf89226962ddf3fb1fe700b5095cb731 Mon Sep 17 00:00:00 2001 From: Manindra Moharana Date: Mon, 19 Aug 2013 22:07:47 +0530 Subject: [PATCH] updated todo --- pdex/Todo, GSoC 2013.txt | 1 + .../mode/experimental/ErrorCheckerService.java | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pdex/Todo, GSoC 2013.txt b/pdex/Todo, GSoC 2013.txt index 97c1fb201..6c583fef4 100644 --- a/pdex/Todo, GSoC 2013.txt +++ b/pdex/Todo, GSoC 2013.txt @@ -130,6 +130,7 @@ General Stuff ============= * Ensure all editor windows are closed when editor is closed. +* Add a red marker near Errors label in console toggle, to indicate errors present in sketch. x Add option for toggling debug output x On Run/Debug Console is visible(ProblemsList hidden) * Update wiki for Ctrl + H instead of Ctrl + J shortcuts diff --git a/pdex/src/processing/mode/experimental/ErrorCheckerService.java b/pdex/src/processing/mode/experimental/ErrorCheckerService.java index 237cafce5..fb582af53 100644 --- a/pdex/src/processing/mode/experimental/ErrorCheckerService.java +++ b/pdex/src/processing/mode/experimental/ErrorCheckerService.java @@ -362,12 +362,22 @@ public class ErrorCheckerService implements Runnable{ return false; } - private AtomicBoolean syntaxErrors; + protected AtomicBoolean syntaxErrors; public boolean hasSyntaxErrors(){ return syntaxErrors.get(); } + public boolean hasErrors(){ + synchronized (problemsList) { + for (Problem p : problemsList) { + if (p.isError()) + return false; + } + return false; + } + } + protected TreeMap tempErrorLog; private void syntaxCheck() {