Bug 22551 Hierarchy pane missing "New..." menu item in context menu [type hierarchy]
(R2.0) I can almost use Eclipse like a Smalltalk Class Hierarchy browser. This is one of two problems. My custom perspective has a Packages pane, a Hierarchy pane (which includes methods of course) and a code editor pane. I cannot create a new class that is a subclass of the selected class in the Hierarchy pane. Note that I can do this in the "Types" pane from the context menu. The workaround is to use the Packages context menu, but this does NOT pick up the superclass that I have selected in the Hierarchy pane.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
}	
	private void saveSelectionState(IMemento memento) {
		Object elements[]= ((IStructuredSelection) fViewer.getSelection()).toArray();
		if (elements.length > 0) {
			IMemento selectionMem= memento.createChild(TAG_SELECTED_ELEMENTS);
			for (int i= 0; i < elements.length; i++) {
				IMemento elementMem= selectionMem.createChild(TAG_SELECTED_ELEMENT);
				
				Object o= elements[i];
				if (o instanceof IJavaElement)
					elementMem.putString(TAG_SELECTED_ELEMENT_PATH, ((IJavaElement) elements[i]).getHandleIdentifier());
			}
		}
	}
	protected void restoreState(IMemento memento) {
		if (fHasWorkingSetFilter)
			fWorkingSetFilterActionGroup.restoreState(memento);
		if (fHasCustomFilter)
			fCustomFiltersActionGroup.restoreState(memento);
			
		if (fHasCustomFilter || fHasWorkingSetFilter) {
			fViewer.getControl().setRedraw(false);
			fViewer.refresh();
			fViewer.getControl().setRedraw(true);
		}
	}	
	private ISelection restoreSelectionState(IMemento memento) {
		if (memento == null)
			return null;