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
Iterator iter= ((IStructuredSelection) selection).iterator();
			javaElements= new HashSet(((IStructuredSelection) selection).size());
			while (iter.hasNext()) {
				Object selectedElement= iter.next();
				
				if (selectedElement instanceof ISearchResultViewEntry)
					selectedElement= ((ISearchResultViewEntry) selectedElement).getGroupByKey();
				if (selectedElement instanceof IJavaElement)
					addJavaElements(javaElements, (IJavaElement) selectedElement);
				else if (selectedElement instanceof IResource)
					addJavaElements(javaElements, (IResource) selectedElement);
				else if (selectedElement instanceof LogicalPackage)
					addJavaElements(javaElements, (LogicalPackage) selectedElement);
				else if (selectedElement instanceof IAdaptable) {
					IResource resource= (IResource) ((IAdaptable) selectedElement).getAdapter(IResource.class);
					if (resource != null)
						addJavaElements(javaElements, resource);
				}
			}
		} else {
			javaElements= EMPTY_SET;
		}
		return javaElements;
	}
	private IJavaSearchScope createJavaSearchScope(Set javaElements) {
		if (javaElements.isEmpty())
			return EMPTY_SCOPE;
		return SearchEngine.createJavaSearchScope((IJavaElement[])javaElements.toArray(new IJavaElement[javaElements.size()]));
	}
	private void addJavaElements(Set javaElements, IResource[] resources) {