Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Creating sub-menu/actions through plugin.xml
Creating sub-menu/actions through plugin.xml [message #460158] Fri, 15 December 2006 10:20 Go to next message
Eclipse UserFriend
Originally posted by: rbitton.cisco.com

Hi, I have seen several posts on creating sub-menu items and actions through the plugin.xml but I haven’t seen a concrete example of how to do this. Can someone post one since I am having a lot of difficulty in getting this to work. I am confused as to how “menu”, “separator”, “group marker” and “action” all tie in together through plugin.xml. So for example, I have a menu I want to create that appears as such:

Test Menu
|
-----Action1
______________

|
-----Action2
______________

|
-----Test Sub Menu
|
-----Action3
|
-----Action4
______________
|
-----Action5

Could anyone kindly help me? Thanks.
Re: Creating sub-menu/actions through plugin.xml [message #460159 is a reply to message #460158] Fri, 15 December 2006 10:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rbitton.cisco.com

Woops, when I cut and paste the menu/sub menu hoerarchy didn't display correctly. This is what I really want to display. Thanks.

Test Menu
|
-----Action1
______________

|
-----Action2
______________

|
-----Test Sub Menu
|
-----Test Sub Menu ----> Action3
|
-----Test Sub Menu ----> Action4
______________
|
-----Action5
Re: Creating sub-menu/actions through plugin.xml [message #460161 is a reply to message #460158] Fri, 15 December 2006 11:10 Go to previous message
Eclipse UserFriend
Check out the actionSet for org.eclipse.update.ui.softwareUpdates in the
org.eclipse.ui.ide/plugin.xml plugin.

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.ide/ plugin.xml?revision=1.163&view=markup

Define your menu items ... your menubarPath is composed of 0 or more
menu ids, and terminates with a group name.

Same with <action/> elements, the menubarPath is made up of your menu
ids and ends with the group you want the <action/> inserted into.

Later,
PW
Previous Topic:How to estimate the testing efforts on Eclipse plateform SDK based on package te
Next Topic:Adding submenus to custom menus
Goto Forum:
  


Current Time: Mon Mar 17 21:54:19 EDT 2025

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

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

Back to the top