Bug 6765 Type hierarchy missing buttons when in "Hierarchy View Only" mode
Build 20011206, Win2000 Steps: 1) Put the type hierarchy view in "Hierarchy View Only" 2) Shutdown the workbench and restart 3) The type hierarchy is now missing its toolbar buttons, the ones that cycle between the different type hierarchy modes. Workaround is to switch to "Vertical Viewer Orientation", then back to "Hierarchy View Only", then the buttons reappear. Side note: This seems to be the only place in the UI that the term "Viewer" is used. Maybe it should say "Vertical View Orientation", etc. There's probably a JFace viewer underneath, but users are only aware of views, not viewers.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
addRefactoring(menu, viewer);
		ContextMenuGroup.add(menu, new ContextMenuGroup[] { new BuildGroup(), new ReorgGroup() }, viewer);
	}
	/**
	 * Creates the context menu for the method viewer
	 */	
	private void fillMethodsViewerContextMenu(IMenuManager menu) {
		JavaPlugin.createStandardGroups(menu);
		
		fMethodsViewer.contributeToContextMenu(menu);
		if (fSelectedType != null &&  fAddStubAction.init(fSelectedType, fMethodsViewer.getSelection())) {
			menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, fAddStubAction);
		}
			
		addOpenWithMenu(menu, (IStructuredSelection)fMethodsViewer.getSelection());
		addRefactoring(menu, fMethodsViewer);
		ContextMenuGroup.add(menu, new ContextMenuGroup[] { new BuildGroup(), new ReorgGroup() }, fMethodsViewer);
	}
	
	private void addRefactoring(IMenuManager menu, IInputSelectionProvider viewer){
		MenuManager refactoring= new MenuManager(TypeHierarchyMessages.getString("TypeHierarchyViewPart.menu.refactor")); 
		ContextMenuGroup.add(refactoring, new ContextMenuGroup[] { new RefactoringGroup() }, viewer);
		if (!refactoring.isEmpty())
			menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, refactoring);
	}
	
	private void addOpenWithMenu(IMenuManager menu, IStructuredSelection selection) {