Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDocumentation on searchResultViewPages extension point
https://www.eclipse.org/forums/index.php/mv/msg/269143/769725/#msg_769725
I am working on an Ecplise plugin for a wonderful language (OCaml) and would like to implement an action to search for an identifier in a project. I know how to add actions, get the currently edited file, cursor position, etc., and I have a tool (external) to compute the list of matches (file, position tuples).
Now for displaying the matches, as a clickable result list, it looks like I should use the searchResultViewPages extension point, but I can't understand its heavy API (ISearchResult, ISearchResultPage...), and how tied it is to querries and dialogs (which I don't need).
Two questions : is it the right API to use ? and does it have a good documentation somewhere (couldn't find anything other than the API reference and extension point reference). I would appreciate any hints before I give up and implement this with a view, and low-level mouse handling.
Thanks for helping,
Tiphaine Turpin]]>tiphaine.turpin2011-12-22T15:40:04-00:00Re: Documentation on searchResultViewPages extension point
https://www.eclipse.org/forums/index.php/mv/msg/269143/775599/#msg_775599
> Hi,
>
> I am working on an Ecplise plugin for a wonderful language (OCaml) and
> would like to implement an action to search for an identifier in a
> project. I know how to add actions, get the currently edited file,
> cursor position, etc., and I have a tool (external) to compute the
> list of matches (file, position tuples).
>
> Now for displaying the matches, as a clickable result list, it looks
> like I should use the searchResultViewPages extension point, but I
> can't understand its heavy API (ISearchResult, ISearchResultPage...),
> and how tied it is to querries and dialogs (which I don't need).
>
> Two questions : is it the right API to use ?
Yes.
> and does it have a good documentation somewhere (couldn't find
> anything other than the API reference and extension point reference).
I don't think so.
> I would appreciate any hints before I give up and implement this with
> a view, and low-level mouse handling.
I suggest you take a look at one of the existing implementation (File
search or Java search).