Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDropdown in Toolbar
https://www.eclipse.org/forums/index.php/mv/msg/246460/736876/#msg_736876
MDirectMenuItem menuItem = MMenuFactory.INSTANCE.createDirectMenuItem();
menuItem.setLabel("Label");
MToolBar elem=(MToolBar)eservice.find("toolbar:org.eclipse.ui.main.toolbar",application);
MMenu toolMenu = MMenuFactory.INSTANCE.createMenu();
toolMenu.setLabel("Test");
MDirectToolItem toolItem=MMenuFactory.INSTANCE.createDirectToolItem();
elem.getChildren().add(toolItem);
toolItem.setMenu(toolMenu);
toolMenu.getChildren().add(menuItem);
There is a bug report 356309 stating that a static Dropdown Menu isnt shown, is the dynamic menu not shown for the same reason?
In the bug report a workaround "force the rendering engine to create the widget for the menu" is mentioned, how do I this? A snippet would be very helpfull.
Thanks!
]]>Missing name Mising name2011-10-14T12:26:31-00:00