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
protected Object createSearchDescription(IJavaElement element) {
		IType type= getType(element);
		return new JavaSearchDescription(getLimitTo(), element, null, getScopeDescription(type));
	}
	JavaSearchOperation makeOperation(IJavaElement element) throws JavaModelException {
		IType type= getType(element);
		return new JavaSearchOperation(JavaPlugin.getWorkspace(), element, getLimitTo(), getScope(type), getScopeDescription(type), getCollector());
	}
	abstract int getLimitTo();
	IJavaSearchScope getScope(IType element) throws JavaModelException {
		return SearchEngine.createWorkspaceScope();
	}
	JavaSearchResultCollector getCollector() {
		return new JavaSearchResultCollector();
	}
	
	String getScopeDescription(IType type) {
		return SearchMessages.getString("WorkspaceScope"); 
	}
	IType getType(IJavaElement element) {
		if (element == null)
			return null;
		
		IType type= null;
		if (element.getElementType() == IJavaElement.TYPE)
			type= (IType)element;
		else if (element instanceof IMember)
			type= ((IMember)element).getDeclaringType();
		else if (element instanceof ILocalVariable) {
			type= (IType)element.getAncestor(IJavaElement.TYPE);