}
public void feed(String text)
{
SearchSubTab subTab = new SearchSubTab(text);
SearchRequest request;
try
{
request = new SearchRequest(text, subTab);
}
catch (IllegalArgumentException e)
{
return;
}
subTab.setRequest(request);
try
{
getSearchManager().addRequest(request);
}
catch (IllegalStateException e)
{
MessageBox.showInformation("You are not connected to a server.",
"Not connected");
return;
}
subTab.addToPane(subPane);
subPane.setSelectedComponent(subTab);
}