Project: JDT
Bug 39754 New projects being added to the TreeViewer twice [package explorer]
Reported: 2003-07-08 10:33:59 | Status: resolved fixed

20030703 When the first project you create in a Workbench is a JavaProject you end up getting it added twice to the viewer. This is because the items get added both as a result of the selectReveal in the New Java Project Wizard and as a result of postAdd called due to the resource listener in the view. This extra item does not get created the second time so it appears to be something to do with the empty view case. Previously the tree viewer always called a refresh on an add so this problem was not exposed. This was a bug that had been fixed for 20030701. @see PackageExplorerContentProvider#postAdd() @see PackageExplorerPart#selectReveal() STEPS 1) Start a new workbench 2) Create aProject Fred 3) Fred will appear twice in the PackageExplorer 4) Create a project Bob 5) Bob will only appear once Note this is does not occur in the Resource Navigator

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java