Bug 92835 [Viewers] retrieving projects from CVS creates duplicate resources in Navigator
observed in I0420 and I0426, did not happen in M6 happens on solaris-motif, aix, and hpux, but NOT linux-motif or others I could have the wrong component here, but I guessed UI since WorkbenchContentProvider seems to ultimately populate the Navigator view. - start a new eclipse - show the CVS Repositories view - connect to dev.eclipse.org - start retrieving the org.eclipse.swt and org.eclipse.swt.motif.linux.x86 projects - click "Run In Background" and switch to the Navigator view - the two projects will appear as they're retrieved from CVS (fine), but then at the end of Building there will be two duplicate projects added to the Navigator My initial thought was that this must be a motif Tree bug, but I don't think it is because: -> the problem does not happen on linux-motif -> I inserted several println's in Tree and TreeItem apis, ran through the scenario, and noted that twice as many TreeItem creation apis are being invoked in the unix cases compared to linux-motif, so there seems to be some platform differentiation happening outside of swt
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
* <p>
     * This method should be called (by the content provider) when elements
     * have 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.
     * </p>
     * 
     * @param parentElement
     *           the parent element
     * @param childElements
     *           the child elements to add
     */
    public void add(Object parentElement, Object[] childElements) {
        Assert.isNotNull(parentElement);
        assertElementsNotNull(childElements);
        Widget widget = findItem(parentElement);
        
        if (widget == null)
            return;
        internalAdd(widget, parentElement, childElements);
    }
	/**
     * Adds the given child elements to this viewer as children of the given
     * parent element.
     * <p>
     * EXPERIMENTAL.  Not to be used except by JDT.
     * This method was added to support JDT's explorations
     * into grouping by working sets, which requires viewers to support multiple 
     * equal elements.  See bug 76482 for more details.  This support will
     * likely be removed in Eclipse 3.2 in favour of proper support for
     * multiple equal elements.