Bug 37464 call hierarchy: Should not use working copies
The call hierarchy should not use working copies of compilation units since these may go away (e.g. when an editor is closed).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyViewPart.java
}
    /**
     * @param selection
     */
    private void methodSelectionChanged(ISelection selection) {
        if (selection instanceof IStructuredSelection) {
            Object selectedElement = ((IStructuredSelection) selection).getFirstElement();
            if (selectedElement instanceof MethodWrapper) {
                MethodWrapper methodWrapper = (MethodWrapper) selectedElement;
                revealElementInEditor(methodWrapper, fCallHierarchyViewer);
                updateLocationsView(methodWrapper);
            } else {
                updateLocationsView(null);
            }
        }
    }
    private void revealElementInEditor(Object elem, Viewer originViewer) {
        
        
        if (getSite().getPage().getActivePart() != this) {
            return;
        }
        if (fSelectionProviderMediator.getViewerInFocus() != originViewer) {
            return;
        }
        if (elem instanceof MethodWrapper) {
            CallLocation callLocation = CallHierarchy.getCallLocation(elem);
            if (callLocation != null) {
                IEditorPart editorPart = CallHierarchyUI.isOpenInEditor(callLocation);
                if (editorPart != null) {