title: How to extend the source menu in Eclipse? (or: What is its locationURI?)
body: <p>I am developing an eclipse plugin and trying to extend the source menu (mainMenubar/Source - visible when editing in the java-editor) in Eclipse 3.7.</p>
  
  <p>The <a href="http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Findex.html" rel="nofollow">documentation</a> says to rely on the <code>org.eclipse.ui.menus</code>-extension point since the older extension points are deprecated. It is a complete secret to me where to obtain reliable locationURIs, but I finally managed to find some plausible URI with the Plugin Spy (following an advice <a href="http://www.vogella.de/articles/EclipseCodeAccess/article.html#pluginspy_menu" rel="nofollow">here</a>).
  So the following <em>should</em> be the extension snippet for the plugin.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;extension
   point="org.eclipse.ui.menus"&gt;
   &lt;menuContribution
       locationURI="menu:org.eclipse.jdt.ui.source.menu"&gt;
    &lt;command
      commandId="some.command.id"
          label="Some label"
          style="push"&gt;
    &lt;/command&gt;
   &lt;/menuContribution&gt;
  &lt;/extension&gt;
  </code></pre>
  
  <p>Unfortunately, when running the plugin for my development IDE no command appears, and also no error message. Just nothing happens. When I set the locationURI to "menu:help", the new command appears in the help menu, so the problem seems to be really the locationURI.</p>