Community
Participate
Working Groups
Created attachment 97539 [details] contextmenu.log Using eclipse-SDK-I20080422-0800-win32 1. Add the following to a plugin.xml <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="popup:#TextEditorContext?before=additions"> <menu id="mySubMenu" label="MySubMenu"> <command commandId="org.eclipse.ui.help.aboutAction" style="push"> </command> </menu> </menuContribution> <menuContribution locationURI="popup:org.eclipse.jdt.ui.PackageExplorer?before=additions"> <menu id="mySubMenu" label="MySubMenu"> <command commandId="org.eclipse.ui.help.aboutAction" style="push"> </command> </menu> </menuContribution> </extension> 2. Try to invoke the MySubMenu->About action in the Text Editor popup menu or Package Explorer popup menu 3. The menu item does not work and you get the attached exception in the log. This worked fine in Eclipse 3.4M6a. I think it might have to do with the fix for bug 224682. It looks like dispose is being called on the contribution items but then the menu manager will attempt to use the disposed contribution items.
Actually, I'm going to go ahead and mark this as a blocker since this bug means none of my popup menu items work.
Created attachment 97645 [details] Popup Menus v01 Don't dispose the contribution items in the SWT.Hide event, since it fires the SWT.Selection event afterwards. PW
Thanks Paul ... would it be easy for you to attach a jar, for org.eclipse.ui.workbench, with this fix that "matches" the I20080422-0800 build? That way we in WTP could apply it to verify and continue our testing? Thanks,
Released to HEAD >20080425 David, I'll see about spinning the jar PW
Created attachment 97661 [details] I0422-0800 workbench with patch applied
Verified that replacing my workbench jar with the one attached fixes the problem.
*** Bug 229754 has been marked as a duplicate of this bug. ***
Thanks, this fixes my issue as well. [Mac OS X]