hi, It is better to check out the PDT+DLTK source code,and ISourceModule has the methods that you want.And I do not know where to find the website/resource.
On Tue, Apr 17, 2012 at 9:27 PM, Krishnaveni Sankaranarayanan < mailtov...@gmail.com> wrote: > Hi, > > Thank you. > From the unit object below, can i get the methods, variables etc in that > particular PHP class/script. > Can you help me a reference to any website/resource, which can be help > me further. > > > On Tue, Apr 17, 2012 at 6:48 PM, 赵忠伟 <zhaozhong...@eclipseworld.org>wrote: > >> ISourceModule unit = >> (ISourceModule) PHPStructuredEditor.getModelElement(); >> >> On Tue, Apr 17, 2012 at 7:57 PM, Krishnaveni Sankaranarayanan < >> mailtov...@gmail.com> wrote: >> >>> Hi, >>> >>> I want to write a plugin for PHP files, which will do some specific task >>> for me. From my plugin, i want to get the php class/script details and do >>> some manipulation with that. >>> For a java file we do this final IWorkingCopyManager manager = >>> JavaUI.getWorkingCopyManager(); >>> and from the open editor, we get the ICompilationUnit object and from >>> that we get all the methods,fields etc present in that java file. >>> >>> How can i do the same kind of thing for a PHP file. >>> >>> Can anyone please help... >>> Thanks in advance!! >>> >>> >>> _______________________________________________ >>> pdt-dev mailing list >>> pdt-dev@eclipse.org >>> https://dev.eclipse.org/mailman/listinfo/pdt-dev >>> >>> >> >> >> -- >> >> Thanks! >> >> Best Regards! >> >> Zhao >> >> _______________________________________________ >> pdt-dev mailing list >> pdt-dev@eclipse.org >> https://dev.eclipse.org/mailman/listinfo/pdt-dev >> >> > > > -- > Regards, > Krishnaveni S > > _______________________________________________ > pdt-dev mailing list > pdt-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/pdt-dev > > -- Thanks! Best Regards! Zhao
_______________________________________________ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev