Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Open CustomSearch Page Tab within Default Eclipse Search Page(Open CustomSearch Page Tab within Default Eclipse Search Page on button click)
Open CustomSearch Page Tab within Default Eclipse Search Page [message #1474209] Sat, 15 November 2014 07:42 Go to next message
Amol Badgujar is currently offline Amol BadgujarFriend
Messages: 4
Registered: November 2014
Junior Member
Hello Experts,

I have contributed to Eclipse Search Page using Extension point SearchPages. I can see my custom search page tab in Eclipse search (Ctrl + H).But when i open Search from menu or by pressing Ctrl + H it always opens File Search tab.I want to open my newly created custom search tab on action of some button.For which i think i need unique ID for my custom page.

Thanks in advance for your reply.

-Amol
Re: Open CustomSearch Page Tab within Default Eclipse Search Page [message #1482077 is a reply to message #1474209] Fri, 21 November 2014 13:19 Go to previous message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
Search tab is context-sensitive.
When you selected a java file and hit Ctrl+H, Search dialog shows "Java Search". When you selected a plugin.xml and hit Ctrl+H, Search dialog shows "Plug-in Search". Others as well.
For files, you can set "extensions" in the extension point. Otherwise you need to implement "ISearchPageScoreComputer". See API documents.
If you'd like to have a custom button only for opening search dialog with your custom tab, see OpenSearchDialogAction(IWorkbenchWindow window, String pageId). (pageId is the "id" of org.eclipse.search.searchPages/page)

There is Eclipse Community Forums: Eclipse Platform. Ask further questions there.
Previous Topic:Need help in getResource
Next Topic:Hotkeys doing strange things for me in Luna!
Goto Forum:
  


Current Time: Wed Jun 20 21:15:09 GMT 2018

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

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

Back to the top