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
new ProgressMonitorDialog(shell).run(true, true, op);
			} catch (InvocationTargetException ex) {
				ExceptionHandler.handle(ex, shell, SearchMessages.getString("Search.Error.search.title"), SearchMessages.getString("Search.Error.search.message")); 
			} catch(InterruptedException e) {
				
			} finally {
				if (isAutoBuilding) {
					
					workspaceDesc= JavaPlugin.getWorkspace().getDescription();
					workspaceDesc.setAutoBuilding(true);
					try {
						JavaPlugin.getWorkspace().setDescription(workspaceDesc);
					}
					catch (CoreException ex) {
						ExceptionHandler.handle(ex, shell, SearchMessages.getString("Search.Error.setDescription.title"), SearchMessages.getString("Search.Error.setDescription.message")); 
					}
				}				
			}
		}
	}
	private void performNewSearch(IJavaElement element) throws JavaModelException {
		JavaSearchQuery job= createJob(element);
		JavaSearchResult result= new JavaSearchResult(job);
		NewSearchUI.activateSearchResultView();
		NewSearchUI.runSearchInBackground(job, result);
	}
	protected JavaSearchQuery createJob(IJavaElement element) throws JavaModelException {
		IType type= getType(element);
		return new JavaSearchQuery(element, getLimitTo(), getScope(type), getScopeDescription(type));
	}