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

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
> 


Back to the top