Bug 4970 - Automatic Code Assist needs to be smarter #6
Summary: Automatic Code Assist needs to be smarter #6
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: Other other
: P1 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-15 01:22 EDT by Carolyn MacLeod CLA
Modified: 2002-04-29 06:31 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 Carolyn MacLeod CLA 2001-10-15 01:22:57 EDT
Type:

} catch (

The code assist that automatically comes up suggests only one item, and that is 
my own class that I am currently typing into.

If automatic code assist is going to come up at all after catch, it might as 
well be useful and give me the list of exceptions.
Comment 1 Kai-Uwe Maetzel CLA 2001-10-22 06:04:42 EDT
Core code assist issue. The content assist window only pops up if there are 
proposals which are provided by the core.
Comment 2 Philipe Mulet CLA 2001-10-22 06:42:24 EDT
Is the test case the entire compilation unit content ? If so, then I do not get 
the problem.

Code assist is ignoring the noise before the completion location, therefore it 
will not treat make sense of the bogus source before.

In general, for catch blocks, it will infer a type completion. Restraining to
only exception types would require to intersect completions with a hierarchy of
Throwable which we do not have cached anywhere. This is why we currently answer
all types.

I am wondering if the auto-completion story is such a good idea in the sense 
that it will expose all underlying misleading completions (like the hover-help
for open on selection).
Comment 3 Philipe Mulet CLA 2002-03-28 05:52:47 EST
Good candidate for the relevance computation (for better sorting proposals).
Comment 4 Philipe Mulet CLA 2002-04-10 06:02:09 EDT
Some of the smartness is released for M5, not all of it. This one in particular 
will not happen until M6.
Comment 5 David Audel CLA 2002-04-11 07:42:47 EDT

*** This bug has been marked as a duplicate of 13487 ***
Comment 6 David Audel CLA 2002-04-11 07:49:40 EDT
Ignore my previous comment. it's an errror.
Comment 7 David Audel CLA 2002-04-29 06:31:43 EDT
If the proposal is an exception (type name contain 'exception' or 'error') then 
proposal is more relevant.

Fixed.