I wanted to add a menu item to the Source popup, and I got it working with the following plugin.xml
fragment:
<menuContribution allPopups="true" locationURI="popup:org.eclipse.jdt.ui.source.menu">
<command
commandId="pl.axit.eclipse.bundle.commands.convertToBundle"
id="pl.axit.eclipse.bundle.menus.convertToBundle"
label="Extract bundle" >
</command>
</menuContribution>
And it works after I click the right mouse button and then select Source I can see my Extract bundle item. Great.
But... when I open the Source menu with a shortcut (alt+shift+s) then my Extract Bundle isn't there! Any idea why and how to make it appear after using the shortcut?