MenuItem manuallySearchMatch = new MenuItem("Manual Search");
manuallySearchMatch.addSelectionListener(new SelectionListener<MenuEvent>(){
@Override
public void componentSelected(MenuEvent ce) {
final MessageBox box = MessageBox.prompt("Manual Search", "Please enter your search query:");
box.addCallback(new Listener<MessageBoxEvent>() {
public void handleEvent(MessageBoxEvent ce) {
Dialog box = (Dialog) ce.getBoxComponent();
TextField<String> textField = (TextField<String>) box.getFocusWidget();
String query = (String) textField.getValue();
if(query.length() > 0){
Info.display("Notice", "Manual search for: {0}", new Params(query));