Bug 65321 Call hierarchy: close "top" file and it won't open again
Steps: 1. Open a project with JUnit 3.8.1 sources 2. Open junit.framework.Assert 3. Double click fail( String ) method 4. Press Ctrl+Alt+H 5. Close Assert.java 6. In the "Call Hierarchy" view double-click "fail( String )" -- the "root" of the hierarchy Observed: Assert.java does not open Expected: Assert.java should open Build: 200405280010 Was first observed with early M-s (around 5 or 6 maybe)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyUI.java
}
        } catch (JavaModelException e) {
            JavaPlugin.log(new Status(IStatus.ERROR, JavaPlugin.getPluginId(),
                    IJavaStatusConstants.INTERNAL_ERROR,
                    CallHierarchyMessages.getString(
                        "CallHierarchyUI.open_in_editor.error.message"), e)); 
            ErrorDialog.openError(shell, title,
                CallHierarchyMessages.getString(
                    "CallHierarchyUI.open_in_editor.error.message"), 
                e.getStatus());
        } catch (PartInitException x) {
            String name = callLocation.getCalledMember().getElementName();
            MessageDialog.openError(shell, title,
                CallHierarchyMessages.getFormattedString(
                    "CallHierarchyUI.open_in_editor.error.messageArgs", 
                    new String[] { name, x.getMessage() }));
        }
    }
    /**
     * @param elem
     * @return
     */
    public static IEditorPart isOpenInEditor(Object elem) {
        IJavaElement javaElement= null;
        if (elem instanceof MethodWrapper) {
            javaElement= ((MethodWrapper) elem).getMember();
        } else if (elem instanceof CallLocation) {
            javaElement= ((CallLocation) elem).getCalledMember();
        }
        if (javaElement != null) {