Bug 59037 [Navigator] Package explorer flicker when switching/closing editors
If 'Link with editor' is active I see a lot of redrawing going on in the Package Explorer view when I switch between editors (or close an open editor). If the file opened in the second editor already appears in the Package Explorer, it is simply selected and there is no flicker. If, however, the view has to be scrolled to show the second file, I see a lot of redrawing before the view is shown in the new position. The Outline view also seems to draw a white background before drawing the content for the active editor, but it's not nearly as annoying as the Package Explorer (it's true that hte PAckage Explorer has much more items, though).
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
/**
     * Expands the root of the viewer's tree to the given level.
     * 
     * @param level
     *           non-negative level, or <code>ALL_LEVELS</code> to expand all
     *           levels of the tree
     */
    public void expandToLevel(int level) {
        expandToLevel(getRoot(), level);
    }
    /**
     * Expands all ancestors of the given element so that the given element
     * becomes visible in this viewer's tree control, and then expands the
     * subtree rooted at the given element to the given level.
     * 
     * @param element
     *           the element
     * @param level
     *           non-negative level, or <code>ALL_LEVELS</code> to expand all
     *           levels of the tree
     */
    public void expandToLevel(Object element, int level) {
        Widget w = internalExpand(element, true);
        if (w != null)
            internalExpandToLevel(w, level);
    }
    /**
     * Fires a tree collapsed event. Only listeners registered at the time this
     * method is called are notified.
     *