Bug 296170 - [projection] Treat folded code more like a single object
Summary: [projection] Treat folded code more like a single object
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 14:11 EST by Daniel Bingham CLA
Modified: 2019-09-06 16:13 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bingham CLA 2009-11-25 14:11:36 EST
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.33 Safari/532.0
Build Identifier: Version: 3.4.2  Build id: M20090211-1700  Also happens in 3.5

When I attempt to fold code in Eclipse that folded code doesn't have a back.  As a result, when I try to work after it I often wind up inside the fold.  This happens when I attempt to work on the same line after the fold or often on the line after the fold.  

What's more, it means that in order to move the fold, I have to unfold it.  I cannot simply select and move the folded piece of code. I have to unfold it and then select it. 

I would love to see folding in Eclipse that works similar to what NetBeans has.  In NetBeans, folded code becomes an object about three characters wide that includes both the open bracket and the close bracket of the folded code.  That object can then be moved around and manipulated however I wish.  I can copy/cut/paste it and it'll apply the operation to the folded away code.  I can add spaces or new lines in front of or behind it and it will place them exactly where I would expect them to go: in front of the open bracket or behind the close as I expect.

It means I can fold away code and actually forget about it.  Where as with Eclipse's folding, I still have to be very aware of folded away code.

Reproducible: Always

Steps to Reproduce:
1. In the editor in any language, create a function.
2. Fold that function.
3. Attempt to click on same line as fold after the fold.  You will wind up in the fold at it's front.

In Ubuntu using the PDT or the CDT if you click on the line immediately after the fold you often end up in the same place.  Not always however.
Comment 1 Dani Megert CLA 2009-11-26 02:32:16 EST
Works for me in JDT. Please file the bug
Comment 2 Dani Megert CLA 2009-11-26 07:44:57 EST
Sorry, previous comment went into wrong bug.
Comment 3 Dani Megert CLA 2009-11-26 07:45:34 EST
.
Comment 4 Eclipse Webmaster CLA 2019-09-06 16:13:49 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.