[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| [pde-dev] How to access menuContribution from WorkbenchWindow | 
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.UserNameControlContribution"
                  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.
       IMenuServicemenuService = (IMenuService) PlatformUI.getWorkbench().getService(IMenuService.class);
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