Skip to content

Commit 90eae78

Browse files
committed
Merge pull request #4 from Manindra29/master
textarea painter update bug fix.
2 parents 76dde9b + d6fddea commit 90eae78

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

experimental/src/processing/mode/experimental/ErrorCheckerService.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ public void run() {
243243
if (pauseThread)
244244
continue;
245245

246+
updatePaintedThingy();
247+
246248
if(textModified.get() == 0)
247249
continue;
248250

@@ -281,7 +283,7 @@ private boolean checkCode() {
281283
updateErrorTable();
282284
editor.updateErrorBar(problemsList);
283285
updateEditorStatus();
284-
updateTextAreaPainter();
286+
// updatePaintedThingy();
285287
int x = textModified.get();
286288
//System.out.println("TM " + x);
287289
if(x>=3){
@@ -673,15 +675,14 @@ synchronized public void updateErrorTable() {
673675
/**
674676
* Repaints the textarea if required
675677
*/
676-
public void updateTextAreaPainter() {
677-
// TODO: Make this function of some use
678+
public void updatePaintedThingy() {
678679
editor.getTextArea().repaint();
680+
updateEditorStatus();
679681
currentTab = editor.getSketch().getCodeIndex(
680682
editor.getSketch().getCurrentCode());
681683
if (currentTab != lastTab) {
682684
lastTab = currentTab;
683-
// editor.getTextArea().repaint();
684-
// System.out.println("1 Repaint " + System.currentTimeMillis());
685+
editor.updateErrorBar(problemsList);
685686
return;
686687
}
687688

0 commit comments

Comments
 (0)