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

Bug 170180

Summary: [Common Navigator] Copy/Paste/... actions not visible for mixed IResource/ICElement
Product: [Tools] CDT Reporter: Sascha Radike <sradike>
Component: cdt-coreAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ed.swartz
Version: 4.0   
Target Milestone: 4.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Sascha Radike CLA 2007-01-11 03:46:13 EST
The CDT navigator extension provides refactoring actions (copy, paste, ...). The enablement is set for ICElement (instanceof) only.

This works fine if the user selects IResource elements only, or ICElements only. If the user selects elements of both kinds (e.g. source files and text files), no refactoring actions will show up.

Setting the enablement to [IResource OR ICElement] would probably be a solution. The CDT refactoring actions would show up for both, IResource, ICElement and a mix of both. I just wonder what happens, if another extension - like JDT - tries to do the same.
Comment 1 Anton Leherbauer CLA 2007-01-11 04:45:29 EST
Good point, thanks.
Comment 2 Anton Leherbauer CLA 2007-01-11 09:59:10 EST
Fixed in HEAD. Available in builds > 20060111.
Comment 3 Ed Swartz CLA 2007-10-11 09:25:42 EDT
It looks like this bug is present again in recent 4.0.1 builds (I haven't tried anything older past 4.0 M5 though).  I see other recent bugs that may be related (e.g. https://bugs.eclipse.org/bugs/show_bug.cgi?id=184666)... so is this a regression of this particular fix or a completely new problem?
Comment 4 Anton Leherbauer CLA 2007-10-11 09:56:47 EDT
It's a regression of this fix. See bug 206039.