completion caching for efficiency

This commit is contained in:
Manindra Moharana
2013-07-20 00:45:06 +05:30
parent f5b792e9df
commit 8a2a64bf6c
4 changed files with 83 additions and 43 deletions

View File

@@ -289,7 +289,7 @@ public class TextArea extends JEditTextArea {
word = word.trim();
if (word.endsWith("."))
word = word.substring(0, word.length() - 1);
errorCheckerService.astGenerator.updatePredictions(word, line
errorCheckerService.astGenerator.preparePredictions(word, line
+ errorCheckerService.mainClassOffset,0);
return word;
}
@@ -367,7 +367,7 @@ public class TextArea extends JEditTextArea {
// if (word.endsWith("."))
// word = word.substring(0, word.length() - 1);
int lineStartNonWSOffset = 0;
errorCheckerService.astGenerator.updatePredictions(word, line
errorCheckerService.astGenerator.preparePredictions(word, line
+ errorCheckerService.mainClassOffset,lineStartNonWSOffset);
//showSuggestionLater();
return word;