Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Adding menu items to the popupmenu in a view.
Adding menu items to the popupmenu in a view. [message #271510] Wed, 15 September 2004 16:24
Eclipse UserFriend
Hi,

I am new to eclipse plugin development. I am trying to add a new menu item
and a sub menu to the context popup menu when a java source file is selected
in the navigator. My requirements are as following:

1. I need to add a new menu item, say "Menu Item1" and a sub menu, say "Sub
Menu" to the popup menu when a java source is selected in the navigator
tree.
I tried doing this using an ObjectContribution in the popupmenu extension
point. It works, but I want to know how I can group them together with
separators. I want to do somethin like

---------------
Menu Item1
Sub Menu -> Menu item 2
--------------- Menu Item3

2. I want add a property to the project properties and show/hide the menu
depending on this property.

Is this possible?

Thanks
Anand
Previous Topic:How to determine view/editor screen position
Next Topic:Alternative to: getPluginClassLoader
Goto Forum:
  


Current Time: Sun Nov 09 13:41:19 EST 2025

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

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

Back to the top