improving old code in ErrorBar/Error Marker

This commit is contained in:
Manindra Moharana
2013-08-19 15:57:30 +05:30
parent 98ad15b9b4
commit 4d62508f9b
4 changed files with 92 additions and 129 deletions

View File

@@ -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;