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
* @return	<true> if the given element is a valid element
	 */
	protected boolean isValidElement(Object element) {
		if (element == null)
			return false;
		element= getSuitableJavaElement(element);
		if (element == null)
			return false;
		Object input= getViewer().getInput();
		if (input == null)
			return false;
		if (input instanceof List)
			return ((List)input).contains(element);
		else
			return input.equals(element);
	}
	private boolean isInputResetBy(Object newInput, Object input, IWorkbenchPart part) {
		if (newInput == null)
			return part == fInputSource;
		if (input instanceof IJavaElement && newInput instanceof IJavaElement)
			return getTypeComparator().compare(newInput, input)  >= 0;
		else
			return false;
	}
	private boolean isAncestorOf(Object ancestor, Object element) {
		if (element instanceof IJavaElement && ancestor instanceof IJavaElement)
			return element.equals(ancestor) || isAncestorOf(ancestor, ((IJavaElement)element).getParent());
		return false;
	}
	public void selectionChanged(IWorkbenchPart part, ISelection selection) {