Bug 37979

Summary: Highlight Classes which are not in the import list
Product: [Eclipse Project] JDT Reporter: Andrew Taylor <andy>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 2.1   
Target Milestone: 3.2 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Andrew Taylor CLA 2003-05-22 12:34:02 EDT
If a Class is manually typed in and does not exist within the list of imports,
it is not possible to do member lookup (ctrl-space), and doing so results in a
beep.  A red squiggle under the Class name before ctrl-space is hit (to trigger
beep notification of lack of import) would perhaps be more consistent.

ie: 
for (Iterator i=things.iterator(); i.<ctrl-space>
Results in a beep if java.util.Iterator is not in imports, yet Iterator is not
underlined.

Andy

P.S. Eclipse kicks serious butt and is a marvel of engineering... my
productivity has increased immesurably and I can solo manage projects of a large
size which would otherwise be overwhelming... thanks for your continued effort.
Comment 1 Philipe Mulet CLA 2005-11-22 06:09:18 EST
I believe this should work fine now. David, can you double check ?
Comment 2 Dani Megert CLA 2005-11-22 06:13:43 EST
Seemed not to work using latest I-build.
Comment 3 David Audel CLA 2005-11-22 08:55:01 EST
This doesn't work now.

The red squiggle will be probably present when bug 42253 will be fixed.

Daniel - Why the problem isn't shown in the status bar ?
Comment 4 Dani Megert CLA 2005-11-22 08:58:10 EST
>Daniel - Why the problem isn't shown in the status bar ?
Not sure what you mean.
Comment 5 David Audel CLA 2005-11-22 09:13:51 EST
The CompletionEngine give a problem to the requestor (CompletionRequestor#completionFailure(IProblem)) when there is  no proposal.
Before this problem was shown in the status bar and now there is nothing. Why ?
Comment 6 Dani Megert CLA 2005-11-22 09:52:18 EST
Ah, I see what you mean: you mean why is it saying: "No completion available." instead of the reported problem, right? ==> bug 117493.
Comment 7 David Audel CLA 2005-11-22 10:06:46 EST
It's exactly that.
Comment 8 David Audel CLA 2006-02-28 09:57:53 EST
Works fine with I20060221-1300.

Has been probably fixed with bug 117493 and bug 42253.

I close this bug as WORKSFORME.