}
});
}
if (widget instanceof RelationSuggestBox) {
final RelationSuggestBox suggestBox = (RelationSuggestBox) widget;
suggestBox.addKeyUpHandler(new KeyUpHandler() {
@Override
public void onKeyUp(KeyUpEvent event) {
uploadSuggestBox(suggestBox);
display.setSuggestBoxObject(result, suggestBox);
}
});
suggestBox.addSelectionHandler(new SelectionHandler<SuggestOracle.Suggestion>() {
@Override
public void onSelection(SelectionEvent<SuggestOracle.Suggestion> event) {
String selection = event.getSelectedItem().getReplacementString();
selection = selection.split(" ")[0];
suggestBox.setText(selection);
int index = display.getQueryWidgits().lastIndexOf(suggestBox);
String[] queryType = manQuery.split(" ");
manQuery = "";
for (int i = 0; i < queryType.length; i++) {