| Summary: | No menu contribution is showing up for the PIIclipse bundles | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
| Component: | UI | Assignee: | Paul Webster <pwebster> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | remy.suen, steffen.pingel | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 4.1 M3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Olivier Thomann
Created attachment 178979 [details]
plugin.xml that is containing the menu contribution
In PopupMenuExtender's addMenuContributions(IMenuManager) method, we create a MenuManager which ends up not having any items in it (as we expect them to be coming from an MMC) so the submenu itself is never displayed. The code that is there was written to fix bug 318855. If I cut out the code then bug 318855 will come back (obviously) but the menu contribution will show up correctly. I forgot to mention in the previous comment that there are currently two issues preventing this popup contribution from appearing. The first is that the commands are nested within a <menu> element, which explains comment 2. The second problem is that the 'activeMenuSelection' and 'activeMenuEditorInput' variables are not available in the context [for evaluation]. I think it's too risky to fix tonight, we'll fix it next week (unless something brilliant occurs to you :-) PW Anything that can be done in the bundle's plugin.xml to get the menu? (In reply to comment #5) > Anything that can be done in the bundle's plugin.xml to get the menu? At the moment, I think you'll have to turn them into object contributions which will require some code changes. We need to fix this (your plugin.xml is correct), I just suspect it needs to be next week. A workaround that may (or may not) work for you would be to use CTRL+3 <the initials of the command you want> I often use CTRL+3 cbi (Copy Build Id) PW (In reply to comment #7) > A workaround that may (or may not) work for you would be to use CTRL+3 <the > initials of the command you want> Using Ctrl + 3 works, but I consider this only as a temporary workaround. Is this the same as bug 324494? (In reply to comment #9) > Is this the same as bug 324494? Yes, in that they're both tied to bug 325392 What I'm working on there should fix this and bug 324494 PW As a workaround I've added activeMenuSelection and the other variables to the application context. I'll release it for tonight's build. PW I believe this is fixed now. PW |