find closest node bug fix

This commit is contained in:
Manindra Moharana
2013-08-18 15:46:47 +05:30
parent a5a9f1417b
commit 8a9704b35a
4 changed files with 17 additions and 67 deletions

View File

@@ -248,6 +248,8 @@ public class ErrorCheckerService implements Runnable{
stopThread = false;
checkCode();
if(!hasSyntaxErrors())
editor.showProblemListView(XQConsoleToggle.CONSOLE);
while (!stopThread) {
try {
// Take a nap.
@@ -778,6 +780,7 @@ public class ErrorCheckerService implements Runnable{
// editor.statusNotice("Position: " +
// editor.getTextArea().getCaretLine());
boolean notFound = true;
//if(notFound) return;
for (ErrorMarker emarker : editor.errorBar.errorPoints) {
if (emarker.problem.lineNumber == editor.getTextArea()
.getCaretLine() + 1) {
@@ -794,7 +797,7 @@ public class ErrorCheckerService implements Runnable{
}
}
if (notFound) {
editor.statusEmpty();
//editor.statusEmpty();
}
}