How to access menuContribution from workbenchwindow [message #323172] |
Wed, 12 December 2007 15:17  |
Eclipse User |
|
|
|
Originally posted by: ramak_2005.yahoo.com
Hi All,
In Eclipse 3.3 i used menuContribution extensionPoint as below:
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="toolbar:org.eclipse.ui.trim.status">
<toolbar id="com.bmc.arsys.studio.ui.contributions.userNameContribution ">
<control
class=" com.bmc.arsys.studio.ui.contributions.UserNameControlContrib ution "
id="contributions.userNameControlContrib">
</control>
</toolbar>
</menuContribution>
</extension>
Once created it's fine. But after opening my eclipse, i want to access this menu and change the text.
I used following code to get IMenuService. But Menu Service has only add and remove menus but not access them to modify.
When i inspect in debug i could able to see my control contribution UserNameControlContribution but there is no method to get the handle for it.
Can you please help.
Thanks,
Rama
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04023 seconds