Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Search contribution
Search contribution [message #6342] Thu, 07 June 2007 13:50 Go to next message
Sergey Gomanyuk is currently offline Sergey GomanyukFriend
Messages: 46
Registered: July 2009
Member
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 10:54 Go to previous message
Andrei Sobolev is currently offline Andrei SobolevFriend
Messages: 17
Registered: July 2009
Junior Member
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: Sat Jul 27 05:55:34 GMT 2024

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

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

Back to the top