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

Bug 135587

Summary: [CommonNavigator] JDT refatoring actions appearing when they shouldn't
Product: [Eclipse Project] JDT Reporter: Jon Corchis <jcorchis>
Component: UIAssignee: Michael D. Elder <mdelder>
Status: CLOSED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: daniel_megert, dmisic, markus.kell.r, Mike_Wilson
Version: 3.2   
Target Milestone: 3.2 RC4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jon Corchis CLA 2006-04-07 11:55:38 EDT
The JDT actions (specifically, cut, copy, paste, delete) defined for the CommonNavigator in the plug-in org.eclipse.jdt.ui are appearing in the Project Explorer's context menu for elements they do not apply.
Comment 1 Markus Keller CLA 2006-04-07 13:20:35 EDT
Jon, what elements are you talking about?
Michael, can we do something here?
Comment 2 Jon Corchis CLA 2006-04-07 13:45:15 EDT
EObjects that are wrapped in container objects that my content/action providers specifically target, so as to avoid overlap with other content/action providers.
Comment 3 Dani Megert CLA 2006-05-03 11:54:17 EDT
Ping. Michael, any update on this one?
Comment 4 Michael D. Elder CLA 2006-05-04 09:34:47 EDT
I'll need to follow up with Jon for a specific use case. The J2EE models in WTP also use EObjects in the viewer, and the JDT actions do not show up for those. 
Comment 5 Michael D. Elder CLA 2006-05-08 10:23:39 EDT
I need more detail here before I can debug this issue. Can a use case be provided? EObjects alone are not enough to cause a problem as the J2EE extensions use EObjects for their content. What is different about the use case here?
Comment 6 Dusko CLA 2006-05-08 15:17:42 EDT
I have retested this (using the same environment as Jon had) with RC1a and I cannot reproduce this issue anymore.

The only 'duplication' that I can see is for refactoring (Rename, Move) of resources - there are entries that I am guessing are coming from platform plus another set of entries we set up for our resources. I guess we should refactor our resource refactoring code :) to provide participants instead of doing everything?
Either way, that is not a topic of this Bugzilla and I think this bug could be marked as fixed.
Comment 7 Michael D. Elder CLA 2006-05-08 15:29:13 EDT
Closing as Invalid as the defect is no longer relevant or reproducible. 
Comment 8 Dusko CLA 2006-05-10 16:38:43 EDT
The duplications showing up on resources are definitly coming from JDT. I have logged a separate Buzilla to track this (Bug 141151).
Comment 9 Dani Megert CLA 2006-05-12 04:29:15 EDT
.