Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340338 - [content assist] Proposal does not replace leading chars if there's a selection
Summary: [content assist] Proposal does not replace leading chars if there's a selection
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7 M7   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-17 11:55 EDT by Dani Megert CLA
Modified: 2011-03-17 11:57 EDT (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 Dani Megert CLA 2011-03-17 11:55:59 EDT
3.1.

Inserting a proposal does not replace the leading characters if there's a selection when invoking content assist.

Test Case:
1. set 'Completion overwrites'
2. have:
---%<---
	void test() {
		String s;
		s.getBytes();
	}
---%<---
3. select "get"
4. Ctrl+Space
5. select 'charAt' and insert it
==> s.charAtBytes();
EXPECTED: s.charAt();
Comment 1 Dani Megert CLA 2011-03-17 11:57:50 EDT
Fixed in HEAD (LazyJavaCompletionProposal.java, rev. 1.38).
Available in builds > N20110317-2000.