Bug 9570 [Java Browsing] Types View not updated on deletion
1) Select a method in a type, i.e. all viewers are populated, editor is visible 2) Deactivate linking between active editor and navigator in workbench preferences 3) Deactivate auto build 3) Prespective>Show View>Navigator 4) Pin Navigator 5) Select the file of the previously selected method 6) Context Menu>Delete -> Method View flushed, Editor closed -> Type still visible in Types View ->Selecting Type possible and results in small red square in Methods View
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
void adjustInputAndSetSelection(IJavaElement je) {
		je= findElementToSelect(je);
		if (je == null) {
			
			setInput(null);
			setSelection(StructuredSelection.EMPTY, true);
			return;
		}
		else if (getViewer().testFindItem(je) == null)
			
			setInput(findInputForJavaElement(je));
		setSelection(new StructuredSelection(je), true);
	}
	/**
	 * Finds the closest Java element which can be used as input for
	 * this part and has the given Java element as child
	 * 
	 * @param 	je 	the Java element for which to search the closest input
	 * @return	the closest Java element used as input for this part
	 */
	protected IJavaElement findInputForJavaElement(IJavaElement je) {
		if (je == null)
			return null;
		if (isValidInput(je))
			return je;
		return findInputForJavaElement(je.getParent());
	}
	
	/**
	 * Finds the element which has to be selected in this part.