| Dynamically create eclipse main menu item or global toolbar item [message #771659] |
Tue, 27 December 2011 16:21  |
Hao Missing name Messages: 115 Registered: July 2009 |
Senior Member |
|
|
Appreciate if I can get some helps on the following issue:
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03515 seconds