Question

I have a plugin that extends the Eclipse Search menu in Eclipse 3.7 (Indigo) using the extension point org.eclipse.ui.actionSets. Given that actionSets are deprecated in Eclipse 3.8 and 4.2 (Juno) and Eclipse 4.3 (Kepler), I would like to scrap the actionSets implementation and replace it using the extension point org.eclipse.ui.commands.

However, this doesn't seem (and isn't) straight forward. If I use a locationURI that points to any other menu, I can see the new commands that I have added. However, the Search menu is adamant and I am unable to extend it!

Any suggestions?

I have read the questions raised at Is it possible to extend Eclipse Search Menu and Adding menu item in Eclipse but there doesn't appear to be a solution.

Some background at: http://www.eclipse.org/forums/index.php/t/21216/

Was it helpful?

Solution

Okay, so after some investigation, I discovered that the Search menu can be redefined.

<menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=Navigate">
    <menu 
        id="org.eclipse.search.menu"
        label="Search">
        <separator name="dialogGroup"/>
    </menu>
</menuContribution>

The one minor disadvantage with this solution is that the menu items in the Search menu are rearranged depending on where the new menu items are added.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top