Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding a new context menu with plugin.xml (not items to an existing)
Adding a new context menu with plugin.xml (not items to an existing) [message #463865] Sat, 17 February 2007 16:06 Go to next message
Eclipse UserFriend
Originally posted by: gunislj.yahoo.com

How to do it non-programaticaly. I want to create a context menu trough
plugin.xml (and actions also).
What changes do i have to make on hookContextMenu() function from well known
example?
Re: Adding a new context menu with plugin.xml (not items to an existing) [message #463888 is a reply to message #463865] Mon, 19 February 2007 11:23 Go to previous message
Eclipse UserFriend
As per the other thread, you must programmatically create a MenuManager
and attach it to your control/viewer. Then you can call
getSite().registerContextMenu(*) that will allow plugin.xml to
contribute actions to it.

Later,
PW
Previous Topic:Can Eclipse RCP produce a web interface too?
Next Topic:migrating presentation factory extension from 3.1 to 3.2.
Goto Forum:
  


Current Time: Wed Mar 26 11:30:27 EDT 2025

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

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

Back to the top