Bug 14331 - ICompilationUnit.getElementAt dos not find import decl
Summary: ICompilationUnit.getElementAt dos not find import decl
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-22 12:07 EDT by Martin Aeschlimann CLA
Modified: 2002-04-30 06:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.