Bug 40830 hierarchy view not up to date after rename [type hierarchy]
If you use the standard java perspective layout and have the following file --------------------------------A.java------------------------ public class A { } class B extends A { } -------------------------------------------------------------- double click on the first 'A' and press F4 (hierarchy view) then click on the package explorer (so as to hide the hierarchy view). then rename the class A to class C (using refactoring) double click on the new class name and click F4 the hierarchy still displays with 'A' at the root and not the new name ('C')
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
private FocusOnSelectionAction fFocusOnSelectionAction;
	private CompositeActionGroup fActionGroups;
	private CCPActionGroup fCCPActionGroup;
	private SelectAllAction fSelectAllAction;
	
	public TypeHierarchyViewPart() {
		fSelectedType= null;
		fInputElement= null;
		fIsVisible= false;
		fIsRefreshRunnablePosted= false;
		
		boolean isReconciled= PreferenceConstants.UPDATE_WHILE_EDITING.equals(PreferenceConstants.getPreferenceStore().getString(PreferenceConstants.UPDATE_JAVA_VIEWS));
		fHierarchyLifeCycle= new TypeHierarchyLifeCycle();
		fHierarchyLifeCycle.setReconciled(isReconciled);
		fTypeHierarchyLifeCycleListener= new ITypeHierarchyLifeCycleListener() {
			public void typeHierarchyChanged(TypeHierarchyLifeCycle typeHierarchy, IType[] changedTypes) {
				doTypeHierarchyChanged(typeHierarchy, changedTypes);
			}
		};
		fHierarchyLifeCycle.addChangedListener(fTypeHierarchyLifeCycleListener);
		
		fPropertyChangeListener= new IPropertyChangeListener() {
			public void propertyChange(PropertyChangeEvent event) {
				doPropertyChange(event);
			}
		};
		PreferenceConstants.getPreferenceStore().addPropertyChangeListener(fPropertyChangeListener);
		fIsEnableMemberFilter= false;
		
		fInputHistory= new ArrayList();