|sub menu in a popup menu are displayed only once [message #1716801]
||Tue, 08 December 2015 10:14
|| vincent lorenzo
Registered: June 2010
Location: Paris Saclay, France
1/ I declare popup menu, with sub menu in the plugin.xml file.
2/ as I don't register my popup menu to the editor site, I build it myself, calling
menuService.populateContributionManager((MenuManager) menuManager, this.menuLocation);
-> the submenu are correctly displayed for the first right click, but not after.
In attachment :
- the plugin.xml
- the abstract java class used to fill the menu from the plugin.xml file.
- 2 images, one with the wante result (obtained with the first right click), the second one it the menu obtained for the next right click.
In fact I'm refactoring the popup menu of the Papyrus Table, in order to be able to get them outside of a part (EditorPart). It works fine excepted for sublmenu.
For interesed people, the full contribution is available as draft here :
Powered by FUDForum
. Page generated in 0.26992 seconds