|
|
Re: Menu imple be a code [message #665794 is a reply to message #665761] |
Sat, 16 April 2011 01:45 |
ash Messages: 142 Registered: July 2010 |
Senior Member |
|
|
HI,
How to add command handler to the menumanager because
Menumanager has add method which accept action has input it will not accept command handler...
IMenuService menuservice = (IMenuService)PlatformUI.getWorkbench().getActiveWorkbenchWi ndow().getService(IMenuService.class);
ICommandService commadnService = (ICommandService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getServ ice(ICommandService.class);
Command cmnd = commadnService.getCommand("com.jobsleaf.comman.display");
MenuManager menumgr = new MenuManager();
/// how can i add command to menu manager
menuservice.populateContributionManager(menumgr,"menu:com.ericsson.properties.view.view4 ");
Please help me i am half the way of the problem
Thanks
Ashok
[Updated on: Sat, 16 April 2011 02:03] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03727 seconds