Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to access menuContribution from workbenchwindow
How to access menuContribution from workbenchwindow [message #323172] Wed, 12 December 2007 15:17 Go to next message
Eclipse UserFriend
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
Re: How to access menuContribution from workbenchwindow [message #323194 is a reply to message #323172] Thu, 13 December 2007 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ramak_2005.yahoo.com

Any one?
Re: How to access menuContribution from workbenchwindow [message #323467 is a reply to message #323194] Fri, 21 December 2007 09:18 Go to previous message
Eclipse UserFriend
Rama Krishna wrote:
> Any one?

I answered this recently in another thread, but your
UserNameControlContribution should go to your model for its information.
If it needs to keep track of changes, it can add a listener.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Previous Topic:EclipseZone non update times-11/4-12/16
Next Topic:Using annotations for extensions
Goto Forum:
  


Current Time: Wed Jun 18 17:18:31 EDT 2025

Powered by FUDForum. Page generated in 0.04023 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top