Dynamic Menu Contribution to PopupMenu [message #1726332] |
Fri, 11 March 2016 13:58 |
Andreas Fagschlunger 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
|
|
|
Powered by
FUDForum. Page generated in 0.02866 seconds