mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 02:45:36 +01:00
improving old code in ErrorBar/Error Marker
This commit is contained in:
@@ -787,15 +787,15 @@ public class ErrorCheckerService implements Runnable{
|
||||
// editor.statusNotice("Position: " +
|
||||
// editor.getTextArea().getCaretLine());
|
||||
for (ErrorMarker emarker : editor.errorBar.errorPoints) {
|
||||
if (emarker.problem.lineNumber == editor.getTextArea()
|
||||
if (emarker.getProblem().lineNumber == editor.getTextArea()
|
||||
.getCaretLine() + 1) {
|
||||
if (emarker.type == ErrorMarker.Warning) {
|
||||
editor.statusNotice(emarker.problem.message);
|
||||
if (emarker.getType() == ErrorMarker.Warning) {
|
||||
editor.statusNotice(emarker.getProblem().message);
|
||||
//+ " : " + errorMsgSimplifier.getIDName(emarker.problem.getIProblem().getID()));
|
||||
//TODO: this is temporary
|
||||
}
|
||||
else {
|
||||
editor.statusError(emarker.problem.message);
|
||||
editor.statusError(emarker.getProblem().message);
|
||||
//+ " : " + errorMsgSimplifier.getIDName(emarker.problem.getIProblem().getID()));
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user