Bug 5232 Java Search page not initialized correctly from Navigator
1. Open the Navigator 2. Select a .java file (that's on the classpath) 3. Open the Search dialog (Ctrl+H) 4. Press Search ==> Nothing found. It should give the same result(s) as if the .java file would be selected in the Packages view.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchPage.java
int				searchFor;
		int				limitTo;
		String			pattern;
		IJavaElement	javaElement;
		int				scope;
		IWorkingSet	 	workingSet;
		
		public SearchPatternData(int s, int l, String p, IJavaElement element) {
			this(s, l, p, element, ISearchPageContainer.WORKSPACE_SCOPE, null);
		}