Skip to main content



      Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Search contribution
Search contribution [message #6342] Thu, 07 June 2007 09:50 Go to next message
Eclipse UserFriend
I'd like investigate how search feature can be implemented with DLTK help.

Could you point me which classes, extension points must I pay attention to?
---------
Sergey Gomanyuk
Re: Search contribution [message #10083 is a reply to message #6342] Fri, 20 July 2007 06:54 Go to previous message
Eclipse UserFriend
Sergey Gomanyuk wrote:
> I'd like investigate how search feature can be implemented with DLTK help.
>
> Could you point me which classes, extension points must I pay attention to?
> ---------
> Sergey Gomanyuk
>
>
>
Hi Sergey,

Sorry for late response.

As I understand you'd like to implement search feature for your language
using DLTK toolkit.

Simple declaration search will be available automatically, after you
specify sourceElementParser for your language, and adding search pages.

For search pages you need to extend org.eclipse.search.searchPages
extension point. For example you could see RubySearchPage.

For more advanced search you need to perform following tasks:

1. Extend org.eclipse.dltk.core.search extension point. It will provide
ISearchFactory interface. With this interface you could specify match
parser, locator, and source requestor.

For example you could see RubySearchFactory or TclSearchFactory classes.

2. Implement MatchLocatorParser is used to parser selected module and
report all possible matches to pattern locator. Please refer to
RubyMatchLocatorParser for example.

3. Implement SourceIndexRequestor is used to report all needed things to
DLTK Index. Default implementation (SourceIndexerRequestor) report model
elements. For example for TCL we make some advanced thinks here. Please
see TclSourceIndexerRequestor class for example.

And whats all.

Andrei.
Previous Topic:JRuby debugging?
Next Topic:Dltk-python-example still doesn't compiled
Goto Forum:
  


Current Time: Wed Jun 04 21:51:58 EDT 2025

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

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

Back to the top