NewSearchUI.activateSearchResultView();
if (matchText != null && type != null) {
ISearchQuery searchQuery = getSearchQuery(file, structuredDocument, matchText, type, textSelection);
if (searchQuery != null) {
if (searchQuery.canRunInBackground())
NewSearchUI.runQueryInBackground(searchQuery);
else
NewSearchUI.runQueryInForeground(null, searchQuery);
}
findOccurrences = true;