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/ExceptionOccurrencesFinder.java
fStart= decl.getBody();
		} else if (parent instanceof Type) {
			parent= parent.getParent();
			if (parent instanceof SingleVariableDeclaration && parent.getParent() instanceof CatchClause) {
				CatchClause catchClause= (CatchClause)parent.getParent();
				TryStatement tryStatement= (TryStatement)catchClause.getParent();
				if (tryStatement != null) {
					IVariableBinding var= catchClause.getException().resolveBinding();
					if (var != null && var.getType() != null) {
						fException= var.getType();
						fStart= tryStatement.getBody();
					}
				}
			}
		}
		if (fException == null || fStart == null)
			return SearchMessages.getString("ExceptionOccurrencesFinder.no_exception");  
		return null;
	}
	
	private MethodDeclaration resolveMethodDeclaration(ASTNode node) {
		if (node instanceof MethodDeclaration)
			return (MethodDeclaration)node;
		Javadoc doc= (Javadoc) ASTNodes.getParent(node, ASTNode.JAVADOC);
		if (doc == null)
			return null;
		if (doc.getParent() instanceof MethodDeclaration)
			return (MethodDeclaration) doc.getParent();
		return null;
	}