Bug 14331

Summary: ICompilationUnit.getElementAt dos not find import decl
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Martin Aeschlimann CLA 2002-04-22 12:07:00 EDT
20020418

ICompilationUnit.getElementAt on a import decl only returns the import 
container, but never a import declaration.

The code to find the inner most is only there for types, but not for the import 
container (JavaElement.getSourceElementAt)
Comment 1 Jerome Lanneluc CLA 2002-04-30 06:28:58 EDT
Changed JavaElement.getSourceElementAt to handle all elements that are instance 
of IParent instead of just IType.