|
Re: Desktop Extensions - Location of a Menu [message #1246040 is a reply to message #1244401] |
Fri, 14 February 2014 16:36 |
Silvio Kohler Messages: 5 Registered: March 2013 |
Junior Member |
|
|
Hi Joao
You can use the extension point org.eclipse.scout.rt.extension.client.menus to add sub menus to existing menus.
- Add org.eclipse.scout.rt.extension.client.menus to the dependencies of your plugin.
- Add an extension to the extension point org.eclipse.scout.rt.extension.client.menus.
- Select menuContribution.
- Select the menu you want to add.
- Use parentMenu to select the menu you want to attach the new menu to.
The new menu...
should extend org.eclipse.scout.rt.client.ui.action.menu.AbstractMenu.
The parent menu...
has to extend org.eclipse.scout.rt.extension.client.ui.action.menu.AbstractExtensibleMenu. This class has the method injectActionNodesInternal which adds the new menu.
Thus, a menu that does not extend AbstractExtensibleMenu cannot be extended using the extension point. This has to be considered when programming a core application that is intended to be extended.
Cheers
Silvio
[Updated on: Fri, 14 February 2014 16:37] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03752 seconds