Adding command, menu contributions, handlers programmatically [message #819915] |
Tue, 13 March 2012 09:40  |
Eclipse User |
|
|
|
Hi,
I would like to add commands, menu contributions, handlers programmatically. Is there any example available? For example all menus like File, Edit and all commands with handlers are defined programmatically.
thanks for assistance
Cheers,
[Updated on: Tue, 13 March 2012 09:49] by Moderator
|
|
|
|
|
|
|
|
Re: Adding command, menu contributions, handlers programmatically [message #825918 is a reply to message #820210] |
Wed, 21 March 2012 08:23  |
Eclipse User |
|
|
|
For the basic window menu structure, you can create that using your ActionBarAdvisor. Add MenuManagers for each of File, Edit, Help, etc.
You can also add CommandContributionItems directly to the MenuManager you create, hooking them up to commands. org.eclipse.ui.IWorkbenchCommandConstants has a good list of command IDs supplied by the workbench.
PW
|
|
|
Powered by
FUDForum. Page generated in 0.13524 seconds