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
}
        return min;
    }
    /**
     * Adds the given child element to this viewer as a child of the given
     * parent element. If this viewer does not have a sorter, the element is
     * added at the end of the parent's list of children; otherwise, the
     * element is inserted at the appropriate position.
     * <p>
     * This method should be called (by the content provider) when a single
     * element has been added to the model, in order to cause the viewer to
     * accurately reflect the model. This method only affects the viewer, not
     * the model. Note that there is another method for efficiently processing
     * the simultaneous addition of multiple elements.
     * </p>
     * 
     * @param parentElement
     *           the parent element
     * @param childElement
     *           the child element
     */
    public void add(Object parentElement, Object childElement) {
        add(parentElement, new Object[] { childElement });
    }
    /**
     * Adds the given SWT selection listener to the given SWT control.
     * 
     * @param control
     *           the SWT control
     * @param listener