Eclipse RCP: How to add a new element to a default Java dropdown menu in the toolbar(New Java Class)
<p>I'm making an RCP application. I need to change the 'New Java Class' dropdown menu:</p>

<p><img src="https://i.stack.imgur.com/Kbmwm.png" alt="Dropdown menu"></p>

<p>to have an extra element (it is used to create a new custom application). </p>

<p>Also I need to change the default 'New Java Class' button to this new custom application element.</p>

<p>I couldn't find the required IDs to extend this dropdown menu in the plugin.xml. My current solution is to create a completely new menuContribution in the toolbar and somehow hide the old one. But I think it should be possible to add a new command to the already existing one.</p>