Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 179719

Summary: [CommonNavigator] Duplicate projects and menu items in Project Explorer
Product: [Eclipse Project] Platform Reporter: Bryan Green <bcgreen>
Component: UIAssignee: Michael D. Elder <mdelder>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: bahepbur, bill.hilliard, bokowski, brockj, camle, kitlo, martinae, Tod_Creasey
Version: 3.3   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard: awaitingfeedback
Attachments:
Description Flags
Resource Perspective with first project selected.
none
Resource Perspective with second project selected.
none
Duplicated menu items
none
Duplicated menu items in Java Perspective
none
Splits the Refactor actions into their action provider to properly override the Resource Refactor actions. none

Description Bryan Green CLA 2007-03-28 09:26:40 EDT
Build ID: eclipse-SDK-I20070322-1300-win32.zip

JVM: IBM J9 VM build 2.3, J2RE 1.5.0

Steps to reproduce:

Window -> Open Perspective -> Other...
Select Resource.
File -> New -> Project...
Select Project from the General category.
Click Next, name the project, and click Finish.

The new project appears twice in the Project Explorer.  Also if you right click the project, menu items Copy, Paste, and Delete are duplicated.

When you switch to the Java Perspective only one project appears in the Package Explorer.  However, switching back to the Resource Perspective will show two projects again.

If a file is added to the project then the Resource Perspective will switch to only show one project, however the menu items are still duplicated.
Comment 1 Bryan Green CLA 2007-03-28 09:28:19 EDT
Created attachment 62218 [details]
Resource Perspective with first project selected.

Selected Item shows up as "Test"
Comment 2 Bryan Green CLA 2007-03-28 09:30:03 EDT
Created attachment 62219 [details]
Resource Perspective with second project selected.

Second project shows up selected as "/Test"
Comment 3 Bryan Green CLA 2007-03-28 09:30:34 EDT
Created attachment 62220 [details]
Duplicated menu items
Comment 4 John Arthorne CLA 2007-03-28 10:07:19 EDT
I cannot reproduce this with 3.3 M6. Can you list what other features you have installed? There are a number of menus and toolbar buttons visible in these screen shots that do not appear in the Eclipse SDK.

Moving to UI (this is the Common Navigator).
Comment 5 Bryan Green CLA 2007-03-28 11:47:37 EDT
I'm sorry, this is not a bug in the Resource Perspective.  It is specific to the Project Explorer.  Even in the Java Perspective this problem occurs.

I downloaded the M6 build and found that this problem has not been corrected in the newer build.

The duplicate projects occur only when CDT installed, but the duplicate menu items always occur.
Comment 6 Bryan Green CLA 2007-03-28 11:49:14 EDT
Created attachment 62244 [details]
Duplicated menu items in Java Perspective

This is the M6 build without any additional plugins.
Comment 7 Bryan Green CLA 2007-03-29 08:58:00 EDT
Bug #150404 contains the CDT problem.
Comment 8 Michael D. Elder CLA 2007-03-30 00:28:23 EDT
*** Bug 158896 has been marked as a duplicate of this bug. ***
Comment 9 Michael D. Elder CLA 2007-03-30 00:31:51 EDT
This is caused by an extension in the JDT that is not properly overriding the Resource actions. A patch will be provided for review by the JDT Team
Comment 10 Michael D. Elder CLA 2007-03-30 00:34:22 EDT
Created attachment 62460 [details]
Splits the Refactor actions into their action provider to properly override the Resource Refactor actions. 

The JDT extension was only overridding the Resource Refactor actions. The Resource actions were split back in 3.2.1 to allow clients to override Edit actions (CCP) and Refactor action (Move, Rename) independently. It seems as though the JDT component wasn't updated as a result of this change.
Comment 11 Michael D. Elder CLA 2007-04-01 21:54:24 EDT
See 179179, 157314, 156357"
   href="show_bug.cgi?id=180406">bug 180406 for an integrated patch that replaces attachment 62460 [details].
Comment 12 Michael D. Elder CLA 2007-04-02 11:01:26 EDT
The patch for 179179, 157314, 156357"
   href="show_bug.cgi?id=180406">bug 180406 was released. 
Comment 13 Anton Leherbauer CLA 2007-06-05 02:56:48 EDT
*** Bug 188969 has been marked as a duplicate of this bug. ***