searchParamSection.setExpanded(false);
form.reflow(true);
SearchRunnable search;
if (advancedSearchExpComposite.isExpanded()) {
search = new SearchRunnable(queryText.getText());
} else {
search = new SearchRunnable(searchText.getText(),
searchCaseSensitive.getSelection(),
searchWholeWord.getSelection(),
searchInTitle.getSelection(),
searchInArtist.getSelection(),
searchInAlbum.getSelection(),
searchInGenre.getSelection(),
searchInYear.getSelection());
}
ProgressMonitorDialog dialog = new ProgressMonitorDialog(Display.getDefault().getActiveShell());
try {
dialog.run(true, true, search);
} catch (InvocationTargetException e) {
Log.getInstance(SearchView.class).error(e.getMessage());
} catch (InterruptedException e) {
Log.getInstance(SearchView.class).error(e.getMessage());
}
if (search.getQueryStatus()) {
_lastSearch = search.getResults();
viewer.setInput(getViewSite());
setAllCheckedStatus(true);
} else {
form.setMessage(Messages.getString("SearchView.ErrorInQueryExecution"), IMessageProvider.ERROR); //$NON-NLS-1$
}