Bug 50911 New search: can't search for a search result
I20040128 (5pm) -> New search view turned on The "search" context menu doesn't appear on selections in the search results view. I use this frequently for back-tracing when browsing code. Search for references to a method, and then search for references to the referencing method, etc. Ctrl+Shift+G to search on a selection in the search results view also used to work.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindAction.java
private Class[] fValidTypes;
	private JavaEditor fEditor;	
	FindAction(IWorkbenchSite site, String label, Class[] validTypes) {
		super(site);
		setText(label);
		fValidTypes= validTypes;
	}
	FindAction(JavaEditor editor, String label, Class[] validTypes) {
		this (editor.getEditorSite(), label, validTypes);
		fEditor= editor;
		setEnabled(SelectionConverter.canOperateOn(fEditor));
	}
	private boolean canOperateOn(IStructuredSelection sel) {
		return sel != null && !sel.isEmpty() && canOperateOn(getJavaElement(sel, true));
	}
		
	boolean canOperateOn(IJavaElement element) {
		if (fValidTypes == null || fValidTypes.length == 0)
			return false;
		if (element != null) {
			for (int i= 0; i < fValidTypes.length; i++) {
				if (fValidTypes[i].isInstance(element)) {
					if (element.getElementType() == IJavaElement.PACKAGE_FRAGMENT)
						return hasChildren((IPackageFragment)element);
					else
						return true;
				}
			}
		}
		return false;