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

Bug 377559

Summary: menuContribution not working in Juno, but works fine in Eclipse 3.7
Product: [Eclipse Project] Platform Reporter: Peter Moogk <pmoogk>
Component: UIAssignee: Paul Webster <pwebster>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: makandre, pwebster
Version: 4.2   
Target Milestone: 4.2 M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Plugin project
none
Eclipse 37 screen shot
none
Eclipse 42 screen shot none

Description Peter Moogk CLA 2012-04-24 13:22:20 EDT
Build Identifier: Version: Juno Release Build id: 20120322-1740

I'm using the menuContribution element of the org.eclipse.ui.menus extension to contribute an action to the Show in menu item.  This extension work fine in Eclipse 3.7, but in Eclipse 4.2 the action doesn't come up at all.  Attached to the defect is a zip file that contains a stripped down version of my plugin that can be used to reproduce this problem.  I have also attached two screen shots which show what is displayed in Eclipse 3.7 and what is displayed in Eclipse 4.2.

Reproducible: Always

Steps to Reproduce:
1. Start with an Eclipse 3.7 base 
2. Import the attached plugin project.
3. Launch a self host version of Eclipse that includes this plugin.
4. Create a project in this self host workspace.
5. Right click on this project and select "Show in"
6. Notice that there is a "Test Menu" submenu.
7. Repeat steps 1 to 5 above for Eclipse 4.2.
8. In this case the "Test Menu" submenu does not appear.
Comment 1 Peter Moogk CLA 2012-04-24 13:23:22 EDT
Created attachment 214481 [details]
Plugin project
Comment 2 Peter Moogk CLA 2012-04-24 13:24:14 EDT
Created attachment 214482 [details]
Eclipse 37 screen shot
Comment 3 Peter Moogk CLA 2012-04-24 13:24:55 EDT
Created attachment 214483 [details]
Eclipse 42 screen shot
Comment 4 Paul Webster CLA 2012-04-24 14:30:06 EDT
Fixed

http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=78badb9db2c4072b88aa19125170abd531121ab7

Thank you for the test project and the pictures :-)

PW
Comment 5 Peter Moogk CLA 2012-04-24 14:45:33 EDT
Wow, that was quick!  Thanks for the speedy fix.
Comment 6 Paul Webster CLA 2012-05-01 14:35:00 EDT
in I20120430-1800
PW