Bug 78151 - 'Insert single proposals automatically' should not insert without prefix
Summary: 'Insert single proposals automatically' should not insert without prefix
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-09 05:07 EST by Markus Keller CLA
Modified: 2005-02-14 12:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2004-11-09 05:07:55 EST
200410260800

- Have a new CU New.java:
    public class New extends /*caret*/ { }

- Press Ctrl+Space with the cursor at the indicated location.
=> Was: 'New' is inserted.
=> Expected: Proposal popup with single completion is shown, even if 'Insert
single proposals automatically' is checked.
Comment 1 Dani Megert CLA 2004-11-09 10:20:59 EST
It should not suggest New here.
Comment 2 Martin Aeschlimann CLA 2004-11-09 10:34:11 EST
+ 2 from me
The current behaviour is not consistent. Code assist should suggest either all 
types or no types. The current way of just showing known enclosing types leads 
to lots of strange completions where 99% are not wanted)
e.g. see bug 76674 comment 5 and following

Even better would be a flag to specify to get all types if we want (of course 
not for showing in the UI, but when code assist is used programmatically)
Comment 3 David Audel CLA 2005-01-19 10:46:44 EST
Fixed and test added
  CompletionTests#testCompletionInsideExtends1() ->
CompletionTests#testCompletionInsideExtends12()

Current type and members of this type must not be proposed after 'extends' or
'implements'.
Comment 4 Jerome Lanneluc CLA 2005-02-14 12:22:14 EST
Verified in I20050214