Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » v4.6.0: Unable to 'register' a context menu more than once in a part (on 2 different widgets)
v4.6.0: Unable to 'register' a context menu more than once in a part (on 2 different widgets) [message #1739312] Fri, 29 July 2016 10:21 Go to next message
Eclipse UserFriend
Hi,
In short, with eclipse v4.5.2, it is possible to attach the same popupmenu to more than one component/widget in the same "part" by using EMenuService.registerContextMenu() without problem

This does not work anymore with v4.6.0. With v4.6.0, the popupmenu only appears on the first registered component

This is described in bug #496695

This forbids me to upgrade my eclipse-rcp application to v4.6.0

Q:
- Am I the only one hit by this bug ?
- Is there a workaround?
- Was it "legal" to register the same popupmenu multiple time on different widget (in my case different "Table"s from multiple "TableViewer"s present in the part?). If not how to do it the "legal way"?
Thx

[Updated on: Mon, 01 August 2016 18:40] by Moderator

Re: v4.6.0: Unable to 'register' a context menu more than once in a part (on 2 different widgets) [message #1739461 is a reply to message #1739312] Mon, 01 August 2016 18:41 Go to previous messageGo to next message
Eclipse UserFriend
(fixed the link to the eclipse bug..)
Re: v4.6.0: Unable to 'register' a context menu more than once in a part (on 2 different widgets) [message #1739733 is a reply to message #1739461] Thu, 04 August 2016 08:15 Go to previous messageGo to next message
Eclipse UserFriend
I found that a line in class org.eclipse.e4.ui.internal.workbench.swt.MenuService in method registerContextMenu(Object parent, String menuId) disappeared between v4.5.2 and v4.6.0
Adding back the missing line make it work again!
See the comments in bug #496695
Could someone validate that this is the cause of the regression and make the change in eclipse?
Thx
Re: v4.6.0: Unable to 'register' a context menu more than once in a part (on 2 different widgets) [message #1741129 is a reply to message #1739733] Tue, 23 August 2016 05:11 Go to previous message
Eclipse UserFriend
> Could someone validate that this is the cause of the regression and make the change in eclipse?

This someone was you. Smile Thanks Denis
Previous Topic:Veto an Eclipse 4 view becoming invisible?
Next Topic:No warning in Tooling for missing elementId
Goto Forum:
  


Current Time: Fri Jul 11 22:47:27 EDT 2025

Powered by FUDForum. Page generated in 0.07553 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top