[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] questions regarding "Extending PDT 2.2" : requestor and visitor

I am not quite sure about the differences between 
PHPSourceElementRequestorExtension and PhpIndexingVisitorExtension.

so what I say maybe wrong:)

PHPSourceElementRequestorExtension is something relative to ISourceModule,
for example,php file which is opened in php editor.when you reconcile a
ISourceModule,you should use PhpIndexingVisitor which uses
PHPSourceElementRequestorExtension to extends pdt.
but if you want to content assist or ctrl+click,type inference,or something else,you have to use PhpIndexingVisitorExtension.PhpIndexingVisitor visits the ast then store them in h2 database,PhpIndexingVisitor uses PhpIndexingVisitorExtension to extends pdt.

On Thu, Jan 6, 2011 at 11:38 PM, Laurie SILVIO <l.silvio@xxxxxxxxxxxxxxx> wrote:


I want to improve the ctrl+click in Eclipse PDT for my own PHP framework. I use the Requestor and the Visitor described in the following document (http://wiki.eclipse.org/Extending_PDT_2.2#CTRL_.2B_click), what is the difference between this two classes ? what is the role of the PhpIndexingVisitorExtension object and the role of the PHPSourceElementRequestorExtension ?
Thanks in advance.

DISCLAIMER: This e-mail is private and confidential and may contain proprietary or legally privileged information. It is for the intended recipient only. If you have received this email in error, please notify the author by replying to it and then destroy it. If you are not the intended recipient you must not use, disclose, distribute, copy, print or rely on this e-mail or any attachment. Thank you

pdt-dev mailing list



Best Regards!