Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340338

Summary: [content assist] Proposal does not replace leading chars if there's a selection
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: TextAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.1   
Target Milestone: 3.7 M7   
Hardware: All   
OS: All   
Whiteboard:

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.