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 09:50 Go to next message
Rosa Mising name is currently offline Rosa Mising name
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 11:15 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
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 Aug 28 07:25:23 EDT 2014

Powered by FUDForum. Page generated in 0.01965 seconds