Bug 100787 [search] JavaSearchEditorOpener holds onto last used editor
RC3 - do a search - open the search result - close all editors observe: JavaSearchEditorOpener holds onto the last used editor to open a match. Although this is not a leak we should try to not hold onto closed editors.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchEditorOpener.java
((IReusableEditor) fEditor).setInput(input);
				page.bringToTop(fEditor);
				editor= fEditor;
			} else {
				try {
					editor= page.openEditor(input, editorId, false);
					if (editor instanceof IReusableEditor)
						fEditor= editor;
					else
						fEditor= null;
				} catch (PartInitException ex) {
					MessageDialog.openError(JavaPlugin.getActiveWorkbenchShell(), SearchMessages.Search_Error_openEditor_title, SearchMessages.Search_Error_openEditor_message); 
					return null;
				}
			}
		}
		return editor;
	}
	private IClassFile getClassFile(Object element) {
		if (!(element instanceof IJavaElement))
			return null;
		if (element instanceof IClassFile)
			return (IClassFile) element;
		IJavaElement jElement= (IJavaElement) element;
		if (jElement instanceof IMember)
			return ((IMember) jElement).getClassFile();
		return null;
	}
}