Bug 90074 [search] Search view flashing while navigating workspace
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchResultPage.java
protected void handleOpen(OpenEvent event) {
		Object firstElement= ((IStructuredSelection)event.getSelection()).getFirstElement();
		if (firstElement instanceof ICompilationUnit || 
				firstElement instanceof IClassFile || 
				firstElement instanceof IMember) {
			if (getDisplayedMatchCount(firstElement) == 0) {
				try {
					fEditorOpener.openElement(firstElement);
				} catch (CoreException e) {
					ExceptionHandler.handle(e, getSite().getShell(), SearchMessages.getString("JavaSearchResultPage.open_editor.error.title"), SearchMessages.getString("JavaSearchResultPage.open_editor.error.message")); 
				}
				return;
			}
		}
		super.handleOpen(event);
	}
	public void setFilters(MatchFilter[] enabledFilters) {
		fMatchFilters.clear();
		for (int i = 0; i < enabledFilters.length; i++) {
			fMatchFilters.add(enabledFilters[i]);
		}
		filtersChanged();
	}
	void setElementLimit(int elementLimit) {
		fElementLimit= elementLimit;
		getSettings().put(KEY_LIMIT, elementLimit);
		limitChanged();
	}	
}