Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem with contributing to Eclipse Search menu
Problem with contributing to Eclipse Search menu [message #336968] Thu, 16 July 2009 22:18 Go to next message
Lubos Pochman is currently offline Lubos PochmanFriend
Messages: 29
Registered: July 2009
Junior Member
I am trying to make contribution to Eclipse Search menu, but my
command/menu item doesn't show in the Search menu. I use locationURI
menu:org.eclipse.search.menu?after=fileSearchConte xtMenuActionsGroup (or
after=additions), but item doesn't show in the Search menu.

If I move the command reference to my menu or to any other Eclipse menu
like menu:project, the menu item appears.

I do have org.eclipse.search in Dependencies.

Here is snippet from plugin.xml:

<menuContribution
locationURI="menu:org.eclipse.search.menu?after=fi
leSearchContextMenuActionsGroup">
<command
commandId="my.ui.plugin.commands.searchInScanResul tsCommand"
icon="icons/swirl.gif"
id="my.ui.plugin.menus.searchInScanResultsCommand "
mnemonic="R"
style="push">
</command>
</menuContribution>

I would appreciate any help. Thanks, Lubos
Re: Problem with contributing to Eclipse Search menu [message #336984 is a reply to message #336968] Sat, 18 July 2009 15:31 Go to previous message
Lubos Pochman is currently offline Lubos PochmanFriend
Messages: 29
Registered: July 2009
Junior Member
After looking at org.eclipse.search source code, Eclipse Search menu
(org.eclipse.search.menu) doesn't support Command contributions, so you
cannot use org.eclipse.ui.menus extension point to make Search menu
contribution. You have to use action sets and org.eclipse.ui.actionSets
extension point and use menubarPath org.eclipse.search.menu/dialogGroup
(for example) for your action.
Previous Topic:ClassCircularityError on IConfigurationElement.createExecutableExtension in Eclipse 3.5
Next Topic:Help and Dynamic Loading of doc.isv bundles
Goto Forum:
  


Current Time: Fri Apr 19 22:05:35 GMT 2024

Powered by FUDForum. Page generated in 0.02833 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top