Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Creating a new search tab
Creating a new search tab [message #787411] Tue, 31 January 2012 14:50 Go to next message
Rosa Mising name is currently offline Rosa Mising nameFriend
Messages: 16
Registered: December 2009
Junior Member
Hello,
I want to create a new search tab that does the following:
search some specific text in *.xxx files, BUT the search results in the search results view should be *.yyy files (each *.xxx file has its equivalent *.yyy)

I extended org.eclipse.search.searchPages and created my own search page that implements performAction(). This method basically does:
NewSearchUI.runQueryInBackground(newQuery());
and newQuery() method delegates on TextSearchQueryProvider as follows:
TextSearchQueryProvider.getPreferred().createQuery(input);

The problem is that I don't want to show the files found by the textSearchQueryProvider in the results view. How can I force another results ?

I would appreciate any article explaining in detail how to develop a new search class and how to display the search results.

Thanks a lot.
Re: Creating a new search tab [message #787474 is a reply to message #787411] Tue, 31 January 2012 16:15 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 31.01.2012 15:50, Rosa Mising name wrote:
> Hello,
> I want to create a new search tab that does the following:
> search some specific text in *.xxx files, BUT the search results in
> the search results view should be *.yyy files (each *.xxx file has its
> equivalent *.yyy)
How do you then navigate through the results in the *.yyy files
(assuming that the matches aren't in the *.yyy files)?

Dani
> I extended org.eclipse.search.searchPages and created my own search
> page that implements performAction(). This method basically does:
> NewSearchUI.runQueryInBackground(newQuery());
> and newQuery() method delegates on TextSearchQueryProvider as follows:
> TextSearchQueryProvider.getPreferred().createQuery(input);
>
> The problem is that I don't want to show the files found by the
> textSearchQueryProvider in the results view. How can I force another
> results ?
>
> I would appreciate any article explaining in detail how to develop a
> new search class and how to display the search results.
>
> Thanks a lot.
Previous Topic:Close unrelated projects
Next Topic:View disappears in one perspective if it is a fast view in another
Goto Forum:
  


Current Time: Thu Apr 25 11:51:24 GMT 2024

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

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

Back to the top