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/GotoMarkerAction.java
show(entry.getSelectedMarker());
		}
	}
	private void show(IMarker marker) {
		IResource resource= marker.getResource();
		if (resource == null || !resource.exists())
			return;
		IWorkbenchPage wbPage= JavaPlugin.getActivePage();
		IJavaElement javaElement= SearchUtil.getJavaElement(marker);
		if (javaElement != null && javaElement.getElementType() == IJavaElement.PACKAGE_FRAGMENT)
			gotoPackagesView(javaElement, wbPage);
		else {
			if (SearchUI.reuseEditor())
				showWithReuse(marker, resource, javaElement, wbPage);
			else
				showWithoutReuse(marker, javaElement, wbPage);
		}
	}
	
	private void showWithoutReuse(IMarker marker, IJavaElement javaElement, IWorkbenchPage wbPage) {
		IEditorPart editor= null;
		try {
			Object objectToOpen= javaElement;
			if (objectToOpen == null)
				objectToOpen= marker.getResource();
			editor= EditorUtility.openInEditor(objectToOpen, false);
		} catch (CoreException ex) {
			MessageDialog.openError(JavaPlugin.getActiveWorkbenchShell(), SearchMessages.getString("Search.Error.openEditor.title"), SearchMessages.getString("Search.Error.openEditor.message")); 
		}
		if (editor != null)