mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 02:45:36 +01:00
thread sync bug fix, again. '-_-
This commit is contained in:
@@ -831,19 +831,21 @@ public class ErrorCheckerService implements Runnable{
|
||||
public void updateEditorStatus() {
|
||||
// editor.statusNotice("Position: " +
|
||||
// editor.getTextArea().getCaretLine());
|
||||
for (ErrorMarker emarker : editor.errorBar.errorPoints) {
|
||||
if (emarker.getProblem().getLineNumber() == editor.getTextArea()
|
||||
.getCaretLine() + 1) {
|
||||
if (emarker.getType() == ErrorMarker.Warning) {
|
||||
editor.statusNotice(emarker.getProblem().getMessage());
|
||||
//+ " : " + errorMsgSimplifier.getIDName(emarker.problem.getIProblem().getID()));
|
||||
//TODO: this is temporary
|
||||
synchronized (editor.errorBar.errorPoints) {
|
||||
for (ErrorMarker emarker : editor.errorBar.errorPoints) {
|
||||
if (emarker.getProblem().getLineNumber() == editor.getTextArea()
|
||||
.getCaretLine() + 1) {
|
||||
if (emarker.getType() == ErrorMarker.Warning) {
|
||||
editor.statusNotice(emarker.getProblem().getMessage());
|
||||
//+ " : " + errorMsgSimplifier.getIDName(emarker.problem.getIProblem().getID()));
|
||||
//TODO: this is temporary
|
||||
}
|
||||
else {
|
||||
editor.statusError(emarker.getProblem().getMessage());
|
||||
//+ " : " + errorMsgSimplifier.getIDName(emarker.problem.getIProblem().getID()));
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
editor.statusError(emarker.getProblem().getMessage());
|
||||
//+ " : " + errorMsgSimplifier.getIDName(emarker.problem.getIProblem().getID()));
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (editor.ta.getCaretLine() != lastCaretLine) {
|
||||
|
||||
Reference in New Issue
Block a user