Where Is Menu Contribution Location in Eclipse-rcp

There are 3 main location where a menu can be added (Menu Codes):

1.) menu - menu:org.eclipse.ui.main.menu
2.) toolbar - toolbar:org.eclipse.ui.main.toolbar
3.) popup - popup:org.eclipse.ui.popup.any

To add a menu:
1.) open plugin.xml
2.) go to extension tab and org.eclipse.ui.menus
3.) right click the newly added extension and select New->menuContribution
4.) in the right side: Extension Element Details set the locationURI=[menu code]
5.) and that's it either add a Command or another Menu object to this menuContribution

References:   
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench_cmd_menus.htm   
http://wiki.eclipse.org/Menu_Contributions

0 تعليقات

إرسال تعليق

Post a Comment (0)

أحدث أقدم
NERV Open Source

Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.

Explore NERV on GitHub →