Bug 42998 Search in project does not work for NLS search page
I20030910 1. select SearchMessages.properties (in search plug-in) in the Navigator 2. press Ctrl+H 3. select Enclosing Project scope 4. click the search button Observe: the list contains too many entries.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchScopeFactory.java
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);
	}
	
	public IProject[] getJavaProjects(IJavaSearchScope scope) {
		IPath[] paths= scope.enclosingProjectsAndJars();
		HashSet temp= new HashSet();