1
0
forked from GitHub/gf-core

Added partial word completion to fastcgi server and update GWT UI accordingly.

This commit is contained in:
bjorn
2008-09-15 13:33:40 +00:00
parent 3a7888e660
commit aecf9597eb
2 changed files with 11 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ public class CompletionOracle extends SuggestOracle {
}
public String getReplacementString() {
return string + " ";
return string;
}
}
@@ -44,7 +44,7 @@ public class CompletionOracle extends SuggestOracle {
public void onCompleteDone(GF.Completions completions) {
Collection<CompletionSuggestion> suggestions = new ArrayList<CompletionSuggestion>();
for (int i = 0; i < completions.length(); i++) {
String text = request.getQuery() + " " + completions.get(i).getText();
String text = completions.get(i).getText();
suggestions.add(new CompletionSuggestion(text));
}
callback.onSuggestionsReady(request, new SuggestOracle.Response(suggestions));