Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDynamically create eclipse main menu item or global toolbar item
https://www.eclipse.org/forums/index.php/mv/msg/270799/771659/#msg_771659
I need to create menu items on eclipse main menu bar and toolbar items on eclipse global toolbar when a viewPart instance is created and to remove those menu items when the viewPart instance is disposed.
I tried the following eclipse APIs but could not make them to work:
org.eclipse.ui.menus.IMenuService
org.eclipse.ui.menus.AbstractContributionFactory
org.eclipse.jface.action.ToolBarContributionItem
org.eclipse.jface.action.MenuManager
org.eclipse.jface.action.ToolBarManager
The first issue I am facing is how to define the location where my menu item or toolbar item will be contributed.]]>Hao Missing name2011-12-27T21:21:33-00:00Re: Dynamically create eclipse main menu item or global toolbar item
https://www.eclipse.org/forums/index.php/mv/msg/270799/774723/#msg_774723
See: