Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 41710 - [Navigator] Duplicate projects in Navigator
Summary: [Navigator] Duplicate projects in Navigator
Status: RESOLVED DUPLICATE of bug 44081
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kim Horne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-19 14:24 EDT by Michael Valenta CLA
Modified: 2003-10-07 12:59 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Valenta CLA 2003-08-19 14:24:02 EDT
During my testing for background checkout, I came accross a case that results in
duplicate project entries in the navigator. I ran a checkout of several projects
(~20) in the background. The operation was configured to fire a delta at the end
of the operation but did not lock the workspace. I opened the Navigator about
half way through and it showed the projects that had been checked out so far. At
the end of the operation, the delta containing all project creations resulted in
duplicate entries in the Navigator for these projects.
Comment 1 Knut Radloff CLA 2003-09-02 16:38:43 EDT
What may be happening here is that opening the Navigator fetched the projects 
from the workspace root which returned the ones that were already loaded.
The resource delta that was fired when the checkout was complete added all 
projects to the Navigator. This process does not check whether the projects 
already exist.
Bug 40214 is related. 
Reassigning to Nick since he is taking ownership of the Navigator.
Comment 2 Jean-Michel Lemieux CLA 2003-09-22 15:25:28 EDT
The next integration build will contain incremental change event notification
which will make this more obvious than it previously was.

Another note, duplicate entries in the navigator are not limited to projects.
I've seen folders duplicated as well.
Comment 3 Nick Edgar CLA 2003-09-22 15:52:51 EDT
Tod, could you please put in an exists check for now?
Comment 4 Tod Creasey CLA 2003-09-22 16:31:41 EDT
Added in exists check for 20030923
Comment 5 Tod Creasey CLA 2003-10-07 07:46:25 EDT
Kim

There is a workaround for this currently in TreeViewer add() so you will 
likely have to remove it to replicate this.
Comment 6 Kim Horne CLA 2003-10-07 11:15:55 EDT
The incremental updates work without the exist() check, however as we discussed,
it seems sensible that the same object cannot be added to a given parent node
more than once.  The exists() check should remain to take care of this.
Comment 7 Tod Creasey CLA 2003-10-07 12:59:43 EDT

*** This bug has been marked as a duplicate of 44081 ***