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 Unavailable until 15 August 2016 is currently offline Lars Vogel Unavailable until 15 August 2016Friend
Messages: 1051
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:Eclipse Neon - cannot create a PyDev remote project
Next Topic:Remove E4 menu item programmatically
Goto Forum:
  


Current Time: Wed Sep 20 20:16:18 GMT 2017

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

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