Bug 19431 Selection of new elements in packages view is annoying
from jdt-dev However, I do see that adding an import will expand the compilation unit in the Java Packages view and even expand the import declarations section in order to select the newly added import. I find this very annoying. I don't mind the option to generally "Link Packages view selection to active editor" so long as it's just limited to selecting the compilation unit. But following the addition of imports and auto-expanding to select those entries (and whatever it is that is triggering expansion of the class itself to show the methods) in the Java Packages view is overkill in my opinion.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java
if (element instanceof IPackageFragment) {
				IJavaElement parent= (IJavaElement)internalGetParent(element);
				
				
				if (element.equals(fInput)) {
					postRefresh(element);
				} else {
					postRefresh(parent);
				}
				return;
			}
			
			if (element instanceof IPackageFragmentRoot)
				postRefresh(skipProjectPackageFragmentRoot((IPackageFragmentRoot)element));
			else
				postRefresh(element);
			return;
		}
		for (int i= 0; i < affectedChildren.length; i++) {
			processDelta(affectedChildren[i]);
		}
	}
	/**
	 * Updates the selection. It finds newly added elements
	 * and selects them.
	 */
	private void updateSelection(IJavaElementDelta delta) {
		final IJavaElement addedElement= findAddedElement(delta);
		if (addedElement != null) {