Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » sub menu in a popup menu are displayed only once
sub menu in a popup menu are displayed only once [message #1716801] Tue, 08 December 2015 10:14 Go to next message
vincent lorenzo is currently offline vincent lorenzoFriend
Messages: 138
Registered: June 2010
Location: Paris Saclay, France
Senior Member
Hello,
1/ I declare popup menu, with sub menu in the plugin.xml file.
2/ as I don't register my popup menu to the editor site, I build it myself, calling
menuService.populateContributionManager((MenuManager) menuManager, this.menuLocation);

-> the submenu are correctly displayed for the first right click, but not after.
In attachment :
- the plugin.xml
- the abstract java class used to fill the menu from the plugin.xml file.
- 2 images, one with the wante result (obtained with the first right click), the second one it the menu obtained for the next right click.

In fact I'm refactoring the popup menu of the Papyrus Table, in order to be able to get them outside of a part (EditorPart). It works fine excepted for sublmenu.

For interesed people, the full contribution is available as draft here :
https://git.eclipse.org/r/#/c/62009/
Re: sub menu in a popup menu are displayed only once [message #1716811 is a reply to message #1716801] Tue, 08 December 2015 11:15 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2787
Registered: July 2012
Senior Member
Could this probably be related to a NatTable issue? I think the combination of Eclipse 3 style popup menus is currently not working well with the NatTable popup menu concepts. At least there is an open bug for that, but I haven't investigated on this yet.
Re: sub menu in a popup menu are displayed only once [message #1716821 is a reply to message #1716811] Tue, 08 December 2015 12:11 Go to previous messageGo to next message
vincent lorenzo is currently offline vincent lorenzoFriend
Messages: 138
Registered: June 2010
Location: Paris Saclay, France
Senior Member
Hi Dirk,
I don't think so, I believe it is a more general issue.
What is the bug number for NatTable ?

Regards,
--
Vincent Lorenzo
Re: sub menu in a popup menu are displayed only once [message #1716827 is a reply to message #1716821] Tue, 08 December 2015 12:37 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2787
Registered: July 2012
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=481572

In points out to another issue, but probably they are related.

Could be easily verified if tested on another control than NatTable.
Previous Topic:Eclipse e4 - Part menus
Next Topic:Parts from a perspective that is not active are not closed
Goto Forum:
  


Current Time: Wed Sep 30 23:15:20 GMT 2020

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

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

Back to the top