| Summary: | Dynamic menu contribution as sole menu child does not render menu visible | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Marco Descher <marco> | ||||||
| Component: | UI | Assignee: | Paul Webster <pwebster> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | 4.3 | ||||||||
| Target Milestone: | 4.3 M6 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Mac OS X | ||||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=398866 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Marco Descher
Created attachment 225971 [details]
missing dynamic menu contribution
Created attachment 225984 [details]
Proposed solution
The enclosed patch solves the problem as follows:
If a menu is instantiated there was up to now no reaction if the only element within this menu was a dynamic menu contribution. Due to this the menu was not shown. If a dynamic menu contribution is now part of a menu, a dummy IContributionItem returning isVisible()==true is added to the menu manager in order to force visibility.
This has to be done in any case, as it is not possible to determine whether a dynamic menu contribution will really contain elements, so we have to show the menu.
The solution of Bug 398866 will also solve this problem. Fixed by bug 398866 PW In 4.3.0.I20130311-2000 PW |