Bug 8581 Switch J Search to StructuredContentProvider
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaElementAction.java
case IJavaElement.CLASS_FILE:
				return findType((IClassFile)o);			
		}
		return o;
	}
	private IJavaElement getJavaElement(IMarker o, boolean silent) {
		try {
			return getJavaElement(JavaCore.create((String) ((IMarker) o).getAttribute(IJavaSearchUIConstants.ATT_JE_HANDLE_ID)), silent);
		} catch (CoreException ex) {
			ExceptionHandler.handle(ex, SearchMessages.getString("Search.Error.createJavaElement.title"), SearchMessages.getString("Search.Error.createJavaElement.message")); 
			return null;
		}
	}
	protected IJavaElement getJavaElement(ISelection selection, boolean silent) {
		if (selection instanceof ITextSelection)
			return getJavaElement((ITextSelection) selection);
		else
			if (selection instanceof IStructuredSelection)
				return getJavaElement((IStructuredSelection) selection, silent);
		return null;
	}
	private IJavaElement getJavaElement(Object o, boolean silent) {
		if (o instanceof IJavaElement)
			return getJavaElement((IJavaElement)o, silent);
		else if (o instanceof IMarker)
			return getJavaElement((IMarker)o, silent);
		else if (o instanceof ISelection)
			return getJavaElement((ISelection)o, silent);
		else if (o instanceof ISearchResultViewEntry)
			return getJavaElement((ISearchResultViewEntry)o, silent);