Bug 27994

Summary: Code Assist replace mode inconsistent
Product: [Eclipse Project] JDT Reporter: David Wegener <dpwegener>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jcompagner, mlq.eclipse
Version: 2.1   
Target Milestone: 2.1 RC1   
Hardware: PC   
OS: Windows 98   
Whiteboard:

Description David Wegener CLA 2002-12-09 22:15:25 EST
Platform Win98
Version: 2.1
Build id: 200212041234

With 'Insert completion' unchecked for Java->Editor->Code Assist:

String s;
s.charAt();

If cursor is immedietly after the '.' Code Assist doesn't hilight anything and 
gives list of all possible completions on ctrl->space.  Selecting an item 
performs an insert without removing the charAt.

If cursor is immedietly after the 'c' in charAt Code Assist hilights 'harAt' in 
red text on yellow background and only pulls up completions beginning 
with 'C'.  Selecting an item replaces the hilighted 'harAt' with selected 
method name.

It seems as though replace behave the same way in either case.
Comment 1 Kai-Uwe Maetzel CLA 2002-12-13 07:30:46 EST
We don't get any replace information from the content assist engine when being 
right behind a dot. Moving to core.
Comment 2 Philipe Mulet CLA 2002-12-13 12:12:00 EST
Seems like we should consider this scenario as legite.
Comment 3 David Audel CLA 2003-02-19 07:21:14 EST
Fixed.
Comment 4 David Audel CLA 2003-03-04 11:07:37 EST
Verified.