Bug 18622 20020601build. Search dialog does not close after file or help search.
F2 build. Search dialog does not close after file or help search. The results are displayed, but one must press cancel to close the dialog From the java search page it works O.K. - dialog closes after doing search.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchUtil.java
IJavaElement[] jElements= cu.findElements(je);
				if (jElements == null || jElements.length == 0)
					je= cu.getElementAt(marker.getAttribute(IMarker.CHAR_START, 0));
				else
					je= jElements[0];
			}
			return je;
		} catch (CoreException ex) {
			ExceptionHandler.handle(ex, SearchMessages.getString("Search.Error.createJavaElement.title"), SearchMessages.getString("Search.Error.createJavaElement.message")); 
			return null;
		}
	}
	private static boolean isBinary(IJavaElement jElement) {
		if (jElement instanceof IMember)
			return ((IMember)jElement).isBinary();
		IPackageFragmentRoot pkgRoot= (IPackageFragmentRoot)jElement.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
		if (pkgRoot.isArchive())
			return true;
		return false;
	}
	private static IJavaElement fixCUName(IMarker marker, String handle) {
			
			if (handle != null) {
				String resourceName= ""; 
				if (marker.getResource() != null)
					resourceName= marker.getResource().getName();
				if (!handleContainsWrongCU(handle, resourceName)) {
				 	handle= computeFixedHandle(handle, resourceName);
					IJavaElement je= JavaCore.create(handle);
				 	if (je != null && je.exists()) {