#BUGFIX by cg cvs_MAIN
authorClaus Gittinger <cg@exept.de>
Mon, 15 Jul 2019 18:41:13 +0200
branchcvs_MAIN
changeset 1092 d8d8bc8c6b00
parent 1091 8c18b8f6ff0c
child 1093 b19848756f4b
#BUGFIX by cg class: SmallSense::CompletionController refactoring and fixes added: #computeAndShowCompletions changed: #computeCompletions
SmallSense__CompletionController.st
--- a/SmallSense__CompletionController.st	Mon Jul 15 15:33:58 2019 +0200
+++ b/SmallSense__CompletionController.st	Mon Jul 15 18:41:13 2019 +0200
@@ -427,7 +427,7 @@
     "Modified: / 04-10-2013 / 21:14:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-computeCompletions
+computeAndShowCompletions
     "Actually compute the completions and update the completion view."
 
     | completions |
@@ -437,15 +437,27 @@
     "/ Wait a while to give user chance finish typing.
     "/ This also reduces CPU consumption by avoiding
     "/ useless computation
-    Delay waitForMilliseconds: 200.
+    "/ commented: now done by caller.
+    "/ Delay waitForMilliseconds: 200.
 
-    completions := self computeCompletionsInContext.
+    completions := self computeCompletions.
     completions notEmptyOrNil ifTrue:[
-	editView sensor pushUserEvent: #updateCompletions:sequence: for: self withArguments: (Array with: completions with: seqno)
+        editView sensor 
+            pushUserEvent:#updateCompletions:sequence: for:self 
+            withArguments:(Array with: completions with:seqno)
     ].
 
+    "Created: / 15-07-2019 / 17:29:45 / Claus Gittinger"
+!
+
+computeCompletions
+    "Actually compute the completions and update the completion view."
+
+    ^ self computeCompletionsInContext.
+
     "Created: / 27-09-2013 / 13:12:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified: / 18-05-2014 / 11:50:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 15-07-2019 / 17:30:19 / Claus Gittinger"
 !
 
 computeCompletionsInContext