Bug 66092 The old search API should be deprecated
We should deprecate the old search API. In package org.eclipse.search.ui. I support this request - CCin Jeem for final blessing IActionGroupFactory IContextMenuContributor IGroupByKeyComputer ISearchResultView ISearchResultViewEntry In class SearchUI: public static boolean activateSearchResultView() public static Image getSearchMarkerImage() public static ISearchResultView getSearchResultView() public static final String SEARCH_RESULT_VIEW_ID public static final String POTENTIAL_MATCH public static final String LINE
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchResultPage.java
for (int i= 0; i < elements.length; i++) {
			count+= getDisplayedMatchCount(elements[i]);
		}
		return count;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
	 */
	public Object getAdapter(Class adapter) {
		if (IShowInTargetList.class.equals(adapter)) {
			return SHOW_IN_TARGET_LIST;
		}
		return null;
	}
	
	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) {
				fActionGroup.handleOpen(event);
				return;
			}
		}
		super.handleOpen(event);
	}
	
}