|Implements my own search [message #668149]
||Wed, 04 May 2011 03:11
| arthurembo Simo
Registered: May 2011
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.
Powered by FUDForum
. Page generated in 0.02459 seconds