Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Dynamic Menu Contribution to PopupMenu
Dynamic Menu Contribution to PopupMenu [message #1726332] Fri, 11 March 2016 13:58
Andreas Fagschlunger is currently offline Andreas FagschlungerFriend
Messages: 17
Registered: June 2011
Junior Member
Hi!

In my application I already have a PopupMenu which is bound to a NatTable. There is also a feature which contributes MenuItems to this PopupMenu. Now I want to extend this feature to contribute MenuItems dynamically. To be specific, one group of MenuItems, so a sub menu to the existing one.

I've added a "Dynamic Menu Contribution" and the referenced class is called when the popup is about to show or hide.

But now I'm stuck, in the @AboutToShow method I have my list of MMenuElements and don't know how to add a group/sub menu item. I've followed the steps in the following blog post:

http://blog.vogella.com/2013/03/21/dynamic-menu-contributions-in-eclipse-e4/

Does anyone know how to add a group item to a already existing MPopupMenu?

Best regards,
Andreas Fagschlunger
Previous Topic:Making a Tool Item's Menu appear programmatically
Next Topic:Eclipse - New Plug-in Project - Pure E4 ?
Goto Forum:
  


Current Time: Thu Apr 25 08:42:25 GMT 2024

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

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

Back to the top