Implements my own search [message #668149] |
Wed, 04 May 2011 03:11  |
Eclipse User |
|
|
|
Hi all,
I am new in RCP and need help to implement my own search. I have a big xml file and want to do some search in my tool(RCP). So I have an extension point to org.eclipse.search. That means I become per default a search dialog with the default page 'File Search'. Now I create an own class:
public class SearchPage extends DialogPage implements ISearchPage
This page content 2 TreeViewer to drag and drop. The right treeviewer contains the node to search.
When I press the button 'search', the method perfomAction() is called. Into this method, I search the nodes in the xml files. I become as output or result a set of nodes and I can display that on the console.
Now I want to adapt this to the search mechanism of eclipse, that means I want to open my result (set of nodes) in the search result view. I see that, man need a SearchQuery, SearchResult etc.., but I don't understand how this classes work or how I can adapt my result(set of nodes) to this.
Best regards
|
|
|
|
Re: Implements my own search [message #668358 is a reply to message #668225] |
Thu, 05 May 2011 07:52  |
Eclipse User |
|
|
|
I see,
ok but I choose another simple solution. I used the Search Dialog and added a Page to this. But for the result view, I create an own simple view with a tree viewer, that I give my result as input data and it works. I don't need really more.
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.27488 seconds