mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-21 15:13:11 -06:00
GWT: hide stale suggestions.
This commit is contained in:
1 parent
d5678ee2de
commit
4cd3d6395b
2 files changed
+4
-1
No files matched your search
@@ -3,5 +3,5 @@
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="lib" path="/Users/bringert/src/gwt-mac-1.5.3/gwt-user.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
<classpathentry kind="output" path="src"/>
|
||||
</classpath>
|
||||
@@ -60,6 +60,9 @@ public class CompletionOracle extends SuggestOracle {
|
||||
// only allow a single completion request at a time
|
||||
if (JSONRequest != null)
|
||||
JSONRequest.cancel();
|
||||
|
||||
// hack: first report no completions, to hide suggestions until we get the new completions
|
||||
callback.onSuggestionsReady(request, new SuggestOracle.Response(new ArrayList<CompletionSuggestion>()));
|
||||
|
||||
JSONRequest = pgf.complete(request.getQuery(), getInputLangs(), null, request.getLimit(),
|
||||
new PGF.CompleteCallback() {
|
||||
|
||||
Reference in new issue
Block a user