Bug 57460

Summary: [content assist] Code assist; add 'smart overwrite' feature
Product: [Eclipse Project] JDT Reporter: Alex Blewitt <alex.blewitt>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P5 CC: daniel_megert, kontakt, markus.kell.r
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Alex Blewitt CLA 2004-04-05 10:58:10 EDT
I don't have 'overwrite' enabled for code assist, because in most cases (when I'm just inserting 
something) I don't want it to overwrite the following characters.

However, when I've selected an option that ends with the following text, I'd like it to be overwritten:

string.le|th() -> code assist at | -> string.length();
string.le|other() -> code assist at | -> string.length()other()

This comes in handy when changing subclasses, specifically those that follow the rule of ending in the 
name of the superclass. For example:

new |Applet() -> new Ex|Applet() -> code assist at | -> new ExampleApplet|()

So, when point-from-cursor-to-end-of-word is a suffix of the selected-code-completion, do a replace; 
otherwise do an insert.
Comment 1 Dani Megert CLA 2004-04-07 06:15:04 EDT
There's currently now work planned in this area.
Comment 2 Dani Megert CLA 2007-06-22 09:59:19 EDT
Get rid of deprecated state.
Comment 3 Dani Megert CLA 2011-01-26 12:07:05 EST
Alex, the version points to the first occurrence of the problem and should not be updated just because the (open) bug still occurs.
Comment 4 Alex Blewitt CLA 2011-01-26 12:16:07 EST
Surely the history can tell you what the bug was originally raised against? The suggestion is just as valid to the 3.7 release as the 3.0 release though.

https://bugs.eclipse.org/bugs/show_activity.cgi?id=57460
Comment 5 Dani Megert CLA 2013-07-08 08:47:41 EDT
*** Bug 202599 has been marked as a duplicate of this bug. ***