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

Bug 185760

Summary: [projection] Code corruption when cutting parts of folded text
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: markus.kell.r
Version: 3.3Flags: martinae: review+
Target Milestone: 3.3 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 444831    
Attachments:
Description Flags
Fix none

Description Dani Megert CLA 2007-05-07 09:42:14 EDT
I20070503-1400

1. enable folding (and fold imports)
2. paste this:
------------- %< --------
import java.text.DateFormat;
import java.util.HashMap;
import java.util.List;

class Bug {}
------------- %< --------
3. select "po" from "import"
4. CTRL+X (or Edit > Cut)
==> import folding goes away and text becomes:
imrt java.text.DateFormat;

class Bug {}

==> the editor is completely confused from now.
Comment 1 Dani Megert CLA 2007-05-07 09:42:45 EDT
Created attachment 66100 [details]
Fix
Comment 2 Dani Megert CLA 2007-05-07 09:43:35 EDT
Markus, do you approve to fix this?
Comment 3 Martin Aeschlimann CLA 2007-05-07 09:50:22 EDT
I approve
Comment 4 Markus Keller CLA 2007-05-07 10:50:19 EDT
Reviewed and approved.
Comment 5 Dani Megert CLA 2007-05-07 11:28:53 EDT
Fixed in HEAD.
Available in builds > N20070503-1400.
Comment 6 Dani Megert CLA 2007-05-15 05:58:15 EDT
Verified in I20070515-0010.