prefs work

This commit is contained in:
Manindra Moharana
2013-09-15 21:14:45 +05:30
parent 307051dfb0
commit 69405772a8
5 changed files with 51 additions and 20 deletions

View File

@@ -779,11 +779,11 @@ public class ASTGenerator {
*/
protected ArrayList<CompletionCandidate> candidates;
protected String lastPredictedWord = " ";
protected AtomicBoolean predictionsEnabled;
//protected AtomicBoolean predictionsEnabled;
protected int predictionMinLength = 3;
public void preparePredictions(final String word, final int line, final int lineStartNonWSOffset) {
if(!predictionsEnabled.get()) return;
if(!ExperimentalMode.codeCompletionsEnabled) return;
if(word.length() < predictionMinLength) return;
// This method is called from TextArea.fetchPhrase, which is called via a SwingWorker instance
// in TextArea.processKeyEvent