Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] How to open a file at a particular function

Far from obvious:
CoreModel.getDefault().getCModel().getCProject(.. 
Markus.
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of subs
> Sent: Dienstag, 13. November 2007 22:07
> To: CDT General developers list.
> Subject: Re: [cdt-dev] How to open a file at a particular function
> Importance: Low
> 
> Markus,
> 
> I've just come to implement this - thanks for the pointer.
> 
> One question - how do I convert an IProject (which I have 
> readily available at 
> debug time) into its corresponding ICProject?
> 
> Thanks
> 
> Schorn, Markus wrote:
> > You should use the interface org.eclipse.cdt.core.index.IIndex. It's
> > experimental API but most likely it will only be extended, 
> not changed. 
> > 
> > The interfaces for accessing the index are well documented. 
> Many of the
> > testcases in CDT illustrate how to use them,
> > e.g.: org.eclipse.cdt.internal.index.tests.IndexBugsTests
> > Markus.
> > 
> >> -----Original Message-----
> >> From: cdt-dev-bounces@xxxxxxxxxxx 
> >> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of subs
> >> Sent: Mittwoch, 17. Oktober 2007 22:11
> >> To: CDT General developers list.
> >> Subject: [cdt-dev] How to open a file at a particular function
> >> Importance: Low
> >>
> >> Hi,
> >>
> >> Given a function or method name (as a String), how can I 
> >> locate the file it is 
> >> defined in and open that file at the function definition? Any 
> >> pointers to code, 
> >> snippets or docs would be very useful.
> >>
> >> Thanks
> >>
> >> -- 
> >> Derek
> >>
> >> -- 
> >> Derek
> >> _______________________________________________
> >> cdt-dev mailing list
> >> cdt-dev@xxxxxxxxxxx
> >> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >>
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> > 
> 
> -- 
> Derek
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 


Back to the top