[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Finding IJavaElements (have sourcefile, start and end line numbers)

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