| Summary: | Menu are not correctly filled calling menu service | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Vincent Lorenzo <vincent.lorenzo> | ||||||||
| Component: | UI | Assignee: | Kalyan Prasad Tatavarthi <kalyan_prasad> | ||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||
| Severity: | critical | ||||||||||
| Priority: | P3 | CC: | fanch.bonnabesse, kalyan_prasad, nifauvergue | ||||||||
| Version: | 4.6 | ||||||||||
| Target Milestone: | 4.6 M6 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| See Also: |
https://git.eclipse.org/r/68188 https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=df1a6b461f7ea228edf320f0a2072a5f5d06cd13 |
||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 481727, 483357 | ||||||||||
| Attachments: |
|
||||||||||
Created attachment 259361 [details]
An example outside of Papyrus to reproduce the problem
An example outside of Papyrus to reproduce the problem
Created attachment 259362 [details]
the correct result with the first right click
the correct result with the first right click
Created attachment 259363 [details]
the result for the 2nd and others clicks
the result for the 2nd and others click. Some menu are not here!
I put it in critical hoping getting at least an help on this subject. New Gerrit change created: https://git.eclipse.org/r/68188 Hi, thank you for the fix. Do you know if it will be available in the Neon M6 Milestones ? Gerrit change https://git.eclipse.org/r/68188 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=df1a6b461f7ea228edf320f0a2072a5f5d06cd13 Thanks Kalyan... Verified in Eclipse Integration Build I20160315-2000 |
In Papyrus, we create menu and menu contribution using the ID of the Menu. In some case, we don't have access to the editor site to register the menu contribution. So we try to fill the menu using a MenuListener and this code : class MenuListener implements IMenuListener { @Override public void menuAboutToShow(IMenuManager manager) { final IMenuService menuService = PlatformUI.getWorkbench().getService(IMenuService.class); if (menuService != null && manager instanceof MenuManager) { menuService.populateContributionManager((MenuManager) manager, menuLocation); } } } Unfortunately, the menu is correctly filled for the first right click, but not for the next right click. I add the code in attachment.