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

Bug 273659

Summary: [projection] Cannot cut collapsed blocks of code in java editor
Product: [Eclipse Project] Platform Reporter: Mi Amidot <miamidot>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, markus.kell.r
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Mi Amidot CLA 2009-04-24 19:16:18 EDT
I am editing java source in a GWT application.

In the java source code editor, we can collapse a block of code into a [+] or expand it into a [-].

When I collapse a block of code into a [+], and then select to cut it, the cut does not work but expands the block instead. It fails to cut whether I use the context pop-up menu or by [shift]+[delete].

I need to be able to cut collapsed code in a source file because when the blocks of codes are too long, I have to collapse several of them to move them around.
Comment 1 Dani Megert CLA 2009-04-26 12:57:44 EDT
This has been fixed a while ago. Note that the line delimiter must be included in the selection, e.g.

<start>collapsed line<line delimiter>
<end>
Comment 2 Dani Megert CLA 2009-04-26 12:58:14 EDT
.
Comment 3 Markus Keller CLA 2014-09-04 11:18:25 EDT
Not fixed in M20140903-1600.

*** This bug has been marked as a duplicate of bug 75222 ***