Bug 57460 - [content assist] Code assist; add 'smart overwrite' feature
Summary: [content assist] Code assist; add 'smart overwrite' feature
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 202599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-05 10:58 EDT by Alex Blewitt CLA
Modified: 2013-12-19 08:49 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***