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
try {
							marker.setAttribute(IJavaSearchUIConstants.ATT_JE_HANDLE_ID, handle);
				 		} catch (CoreException ex) {
				 			
				 		} finally {
							return je;
				 		}
				 	}
				}
			}
			return null;
	}
	
	private static boolean handleContainsWrongCU(String handle, String resourceName) {
		int start= handle.indexOf('{');
		int end= handle.indexOf(".java"); 
		if (start >= end)
			return false;
		String name= handle.substring(start + 1, end + 5);
		return name.equals(resourceName);
	}
	
	private static String computeFixedHandle(String handle, String resourceName) {
		int start= handle.indexOf('{');
		int end= handle.indexOf(".java"); 
		handle= handle.substring(0, start + 1) + resourceName + handle.substring(end + 5);
		return handle;
	}
	/** 
	 * Returns the working copy of the given java element.