[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Finding IJavaElements (have sourcefile, start and end line numbers)
|
- From: jon.hatcher@xxxxxxxxxx (Jon Hatcher)
- Date: Thu, 17 Apr 2003 09:21:02 +0000 (UTC)
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
I am currently using:-
IJavaElement element = IJavaProject.findElement(new Path(relPath));
To find compilation units based on some information I have. However, I
also have the start and end line numbers and the column inside that comp.
unit. How do I find the method, or field, or type, that this is referring
to. I know they are valid, as I set markers which appear correctly. I
tried using:-
ICompilationUnit.findElements(int pos)
But couldn't figure out what "pos" is?! The character position in the
file?! Thanks for any help.
Jon