Bug 41584 Search references not hitting build path for working set [search]
This happens in 3.0M2 If I'm searching for references of a method, I usually right click, Search->References->Workspace. However, with large workspaces, this can take pretty long, so I've gotten in the habit of searching for references within a working set. I usually define a workingset for each project and all its contents. The problem is, when I search for references of a method in the workingset, it does not find references to that symbol from the thirdparty jars I have attached to the project's build path (verified the jar is selected as part of the working set). However, if I search the workspace, it does find the references in that thirdparty jar. This is usually for a method defined in the thirdparty jar that I use, and want to see how it is used by the thirdparty.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchScopeFactory.java
Set javaElements= new HashSet(10);
		addJavaElements(javaElements, workingSet);
		return createJavaSearchScope(javaElements);
	}
	public IJavaSearchScope createJavaSearchScope(IResource[] resources) {
		if (resources == null)
			return EMPTY_SCOPE;
		Set javaElements= new HashSet(resources.length);
		addJavaElements(javaElements, resources);
		return createJavaSearchScope(javaElements);
	}
	
	public IJavaSearchScope createJavaSearchScope(ISelection selection) {
		return createJavaSearchScope(getJavaElements(selection));
	}
	
	public IJavaSearchScope createJavaProjectSearchScope(ISelection selection) {
		Set javaElements= getJavaElements(selection);
		Set javaProjects= new HashSet(javaElements.size());
		Iterator elements= javaElements.iterator();
		while (elements.hasNext()) {
			IJavaProject jp= ((IJavaElement)elements.next()).getJavaProject();
			if (jp != null)
				javaProjects.add(jp);	
		}
		return createJavaSearchScope(javaProjects);
	}
	private Set getJavaElements(ISelection selection) {
		Set javaElements;
		if (selection instanceof IStructuredSelection && !selection.isEmpty()) {