| Adding menu items to the popupmenu in a view. [message #271510] |
Wed, 15 September 2004 16:24 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03004 seconds