Bug 25827 Disposing of MemberFilterActionGroup
Build 2.0.2 and 2.1 When investigating an editor memory leak PR we found out that this group has a dispose method which is never called. When we then called from the editor it throw an exeption (viewer was disposed). Don't know if the group really needs dispose() if so it should get called.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
fActionGroups.setContext(null);
		
		
	
		
		
		
	}
	
	private void addOpenWithMenu(IMenuManager menu, IStructuredSelection selection) {
		
		
		if (selection.size() != 1)
			return;
		Object element= selection.getFirstElement();
		if (!(element instanceof IJavaElement))
			return;
				
		IJavaElement openable= (IJavaElement) ((IJavaElement) element).getOpenable();
		IResource resource= openable.getResource();	
		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);
	}
	/**
	 * Toggles between the empty viewer page and the hierarchy