| Summary: | [Commands] [Compatibility] Targeted popup menu contribution appears in 'File > New' menu | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Steffen Pingel <steffen.pingel> | ||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Remy Suen <remy.suen> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | Lars.Vogel, pwebster, remy.suen | ||||
| Version: | 4.2 | ||||||
| Target Milestone: | 4.2 M6 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 321278 | ||||||
| Attachments: |
|
||||||
|
Description
Steffen Pingel
Created attachment 201708 [details]
screenshot
Where is the code for this? I couldn't find anything in the plugin.xml of the org.eclipse.mylyn.tasks.ui bundle though I probably missed it. It seems like the logical place for this wizard to be in anyway. I suspect that the contribution is coming from org.eclipse.mylyn.commons.team:
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.mylyn.commons.team.navigator.Repositories?after=group.new">
<menu
id="new"
label="New">
<command
commandId="org.eclipse.mylyn.commons.ui.command.AddRepository"
label="Repository..."
style="push">
</command>
</menu>
</menuContribution>
The wizard extension point is defined in org.eclipse.mylyn.commons.team. Looking at the schema there are quite a few weirdnesses:
<schema targetNamespace="org.eclipse.mylyn.commons.ui" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.ui" id="newWizards" name="Creation Wizards"/>
</appInfo>
I'll try updating these to the proper bundle ids to verify if that makes a difference.
Fixing the extension schema had no effect but removing the menuContribution above got rid of the menu item. Let me know if you need more information. Confirmed on my end with the snippet of XML from comment 3, thanks Steffen. (In reply to comment #5) > Confirmed on my end with the snippet of XML from comment 3, thanks Steffen. The entry (Repository...) with parent popup:new shouldn't leak over to menu:new. PW This is not a feature. :) Aggregate move to M5. Retarget to a different milestone if you wish... *** Bug 369938 has been marked as a duplicate of this bug. *** Fix pushed to master. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=4a024ea740ec252b18c60c45b99d392ca0a6a180 Thanks for the bug reports as always, Steffen! Verified with I20120312-1730 on Windows 7. |