Bug 50892 Search empty using Search perspective
Build 20040129 Here is my setup: - I have my own Search perspective defined. - I set the preference to use this perspective to report matches. - I'm NOT using the new search view. - I have one window per perspective. When I search for references to a method from the Java perspective, it briefly switches to the Search perspective, then come back to the Java perspctive, continue progress reporting (saying that matches are found), but at the end no result is shown in the Search perspective.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindAction.java
return getJavaElement((IJavaElement)o, silent);
		else if (o instanceof IMarker)
			return getJavaElement((IMarker)o, silent);
		else if (o instanceof ISelection)
			return getJavaElement((IStructuredSelection)o, silent);
		else if (SearchUtil.isISearchResultViewEntry(o))
			return getJavaElement(SearchUtil.getJavaElement(o), silent);
		return null;
	}
	IJavaElement getJavaElement(IStructuredSelection selection, boolean silent) {
		if (selection.size() == 1)
			
			return getJavaElement(selection.getFirstElement(), silent);
		return null;
	}
	private void showOperationUnavailableDialog() {
		MessageDialog.openInformation(getShell(), SearchMessages.getString("JavaElementAction.operationUnavailable.title"), getOperationUnavailableMessage()); 
	}	
	String getOperationUnavailableMessage() {
		return SearchMessages.getString("JavaElementAction.operationUnavailable.generic"); 
	}
	private IJavaElement findType(ICompilationUnit cu, boolean silent) {
		IType[] types= null;
		try {					
			types= cu.getAllTypes();
		} catch (JavaModelException ex) {
			
			ExceptionHandler.log(ex, SearchMessages.getString("JavaElementAction.error.open.message")); 
			if (silent)
				return RETURN_WITHOUT_BEEP;