mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-24 02:12:50 -06:00
GWT: hide stale suggestions.
This commit is contained in:
@@ -3,5 +3,5 @@
|
|||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<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="lib" path="/Users/bringert/src/gwt-mac-1.5.3/gwt-user.jar"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="src"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ public class CompletionOracle extends SuggestOracle {
|
|||||||
// only allow a single completion request at a time
|
// only allow a single completion request at a time
|
||||||
if (JSONRequest != null)
|
if (JSONRequest != null)
|
||||||
JSONRequest.cancel();
|
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(),
|
JSONRequest = pgf.complete(request.getQuery(), getInputLangs(), null, request.getLimit(),
|
||||||
new PGF.CompleteCallback() {
|
new PGF.CompleteCallback() {
|
||||||
|
|||||||
Reference in New Issue
Block a user