Summary: | Organize Imports | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Vijay Aravamudhan <avijayr> | ||||
Component: | UI | Assignee: | Martin Aeschlimann <martinae> | ||||
Status: | CLOSED WORKSFORME | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | ||||||
Version: | 1.0 | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Vijay Aravamudhan
2001-12-15 22:17:09 EST
Moving to JDT/Core. there must be a reference to EditorDelegate. Is a inner class of yours named like that? I would be glad if you can send me a code snippet so I can see whats the problem. A know bug is that if a field or local has a name of a class, a unnecessary import is added. can you provide me with an example? Created attachment 220 [details]
Example that you asked for
Thanks a lot. I investigated the matter. In 20109, when I try this, organize import prompts to specify if 'EditorDelegate' is vijay.TextCellEditor.EditorDelegate or javax.swing.DefaultCellEditor.EditorDelegate It seems you chose the second. So, 'Organize imports' behaves correctly here. In your code the propting makes sense, as you could import the swing class and at the same time have a inner class with the same name. However, there are known problems with 'organize imports' ad unnessary prompting for inner classes. There are plans to improve this with the release of the new AST API. Closing |