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
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()]), false);
	}
	private void addJavaElements(Set javaElements, IResource[] resources) {
		for (int i= 0; i < resources.length; i++)
			addJavaElements(javaElements, resources[i]);
	}
	private void addJavaElements(Set javaElements, IResource resource) {
		IJavaElement javaElement= (IJavaElement)resource.getAdapter(IJavaElement.class);
		if (javaElement == null)
			
			return;
		
		if (javaElement.getElementType() == IJavaElement.PACKAGE_FRAGMENT) {
			
			try {
				addJavaElements(javaElements, ((IFolder)resource).members());
			} catch (CoreException ex) {
				
			}
		}
			
		javaElements.add(javaElement);
	}