*
* @param text to search for
*/
protected void handleSearchPerformed(String text) {
try {
TextSearchQueryProvider queryProvider = TextSearchQueryProvider.getPreferred();
IJavaProject currentJavaProject = theController.getCurrentProject();
if (currentJavaProject == null) return;
IResource currentProject = currentJavaProject.getResource();
ISearchQuery query = queryProvider.createQuery(text, asArray(currentProject));
NewSearchUI.runQueryInBackground(query);
query.getSearchResult().addListener(resultListener);
} catch (CoreException e) {
Log.error(e);
}