Bug 7540 JDT Type hierarchy "Lock view ..." doen't work always
If the "Lock view and show members in hierarchy" is selected before any method is selected in method pane, the class pane isn t updated, if a method is selected afterwards. Selecting a method and select "Lock view..." works as expected
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
if (!(element instanceof IJavaElement))
			return;
		IResource resource= null;
		try {
			resource= ((IJavaElement)element).getUnderlyingResource();	
		} catch(JavaModelException e) {
			
		}
		if (!(resource instanceof IFile))
			return; 
		
		MenuManager submenu= new MenuManager(TypeHierarchyMessages.getString("TypeHierarchyViewPart.menu.open")); 
		submenu.add(new OpenWithMenu(getSite().getPage(), (IFile) resource));
		
		menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, submenu);
	}
	private void addOpenPerspectiveItem(IMenuManager menu, IStructuredSelection selection) {
		OpenTypeHierarchyUtil.addToMenu(getSite().getWorkbenchWindow(), menu, selection);
	}
	/**
	 * Toggles between the empty viewer page and the hierarchy
	 */
	private void setViewerVisibility(boolean showHierarchy) {
		if (showHierarchy) {
			fViewerbook.showPage(getCurrentViewer().getControl());
		} else {
			fViewerbook.showPage(fEmptyTypesViewer);
		}
	}