Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:21 Go to next message
Denis Forveille is currently offline Denis ForveilleFriend
Messages: 10
Registered: July 2016
Junior Member
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 22:40]

Report message to a 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 22:41 Go to previous messageGo to next message
Denis Forveille is currently offline Denis ForveilleFriend
Messages: 10
Registered: July 2016
Junior Member
(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 12:15 Go to previous messageGo to next message
Denis Forveille is currently offline Denis ForveilleFriend
Messages: 10
Registered: July 2016
Junior Member
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 09:11 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

> 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 Apr 26 21:48:55 GMT 2024

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

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

Back to the top