File tree Expand file tree Collapse file tree
java/src/processing/mode/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2729,13 +2729,14 @@ private boolean checkForJavaTabs() {
27292729 }
27302730
27312731
2732+ @ Override
27322733 protected void applyPreferences () {
27332734 super .applyPreferences ();
27342735 if (jmode != null ) {
27352736 jmode .loadPreferences ();
27362737 Messages .log ("Applying prefs" );
27372738 // trigger it once to refresh UI
2738- errorCheckerService .request ();
2739+ errorCheckerService .handleErrorCheckingToggle ();
27392740 }
27402741 }
27412742
Original file line number Diff line number Diff line change @@ -275,7 +275,6 @@ public void run() {
275275 astGenerator .buildAST (lastCodeCheckResult .sourceCode ,
276276 lastCodeCheckResult .compilationUnit );
277277 }
278- handleErrorCheckingToggle ();
279278
280279 while (running ) {
281280 try {
@@ -1556,18 +1555,18 @@ public static String substituteUnicode(String program) {
15561555 return new String (p2 , 0 , index );
15571556 }
15581557
1558+
15591559 public void handleErrorCheckingToggle () {
15601560 if (!JavaMode .errorCheckEnabled ) {
1561- Messages .log (editor .getSketch ().getName () + " Error Checker paused." );
1562- //editor.clearErrorPoints();
1561+ Messages .log (editor .getSketch ().getName () + " Error Checker disabled." );
15631562 editor .getErrorPoints ().clear ();
15641563 lastCodeCheckResult .problems .clear ();
15651564 updateErrorTable (Collections .<Problem >emptyList ());
15661565 updateEditorStatus ();
15671566 editor .getTextArea ().repaint ();
15681567 editor .repaintErrorBar ();
15691568 } else {
1570- Messages .log (editor .getSketch ().getName () + " Error Checker resumed ." );
1569+ Messages .log (editor .getSketch ().getName () + " Error Checker enabled ." );
15711570 request ();
15721571 }
15731572 }
You can’t perform that action at this time.
0 commit comments