Bug 104373 - [projection] Entered text gets automatically folded away
Summary: [projection] Entered text gets automatically folded away
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
: 185665 324318 325962 384904 403894 415433 422201 431492 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-19 13:05 EDT by Brian Miller CLA
Modified: 2023-02-02 09:26 EST (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Miller CLA 2005-07-19 13:05:57 EDT
Steps:
1) Fold the method.
2) Put the caret on the blank line between the class declaration and the 
folded method.
3) Use the keyboard to type the keyword 'static' (without the apostrophes).  
See that the text entered in this step vanishes!

----------------- Bug.java ---------------------
class Bug {

    static void method(){    
    }
}
Comment 1 Markus Keller CLA 2005-07-19 13:52:03 EDT
Moving to JDT/Text.
Comment 2 Dani Megert CLA 2005-07-20 03:11:17 EDT
Only happens if you stop typing after 'static'.

Maybe we could try not to change the existing folding if an error gets
introduced by newly typed code.
Comment 3 AJ Barnes CLA 2005-09-22 07:09:05 EDT
Also with other modifiers, such as public, etc.
Comment 4 Mik Kersten CLA 2005-09-23 12:37:32 EDT
Thanks for CC'ing me AJ.  This is issue is more visible when you are using Mylar
which automatically folds everything that is uninteresting (i.e. elements you
haven't edited or selected).  
Comment 5 Dani Megert CLA 2006-04-05 09:34:59 EDT
Sorry not for 3.2.
Comment 6 Dani Megert CLA 2010-09-03 02:59:27 EDT
*** Bug 324318 has been marked as a duplicate of this bug. ***
Comment 7 Dani Megert CLA 2010-09-22 09:53:26 EDT
*** Bug 325962 has been marked as a duplicate of this bug. ***
Comment 8 Markus Keller CLA 2012-07-12 05:59:56 EDT
*** Bug 384904 has been marked as a duplicate of this bug. ***
Comment 9 Dani Megert CLA 2013-11-21 09:27:59 EST
*** Bug 185665 has been marked as a duplicate of this bug. ***
Comment 10 Dani Megert CLA 2013-11-21 09:28:08 EST
*** Bug 403894 has been marked as a duplicate of this bug. ***
Comment 11 Dani Megert CLA 2013-11-21 09:28:13 EST
*** Bug 415433 has been marked as a duplicate of this bug. ***
Comment 12 Dani Megert CLA 2013-11-21 09:29:11 EST
*** Bug 422201 has been marked as a duplicate of this bug. ***
Comment 13 Palmer Eldritch CLA 2013-12-17 08:49:27 EST
Is there a target milestone for this one ?
Comment 14 Dani Megert CLA 2013-12-17 08:54:24 EST
(In reply to Palmer Eldritch from comment #13)
> Is there a target milestone for this one ?

No, no one is working on this.
Comment 15 Dani Megert CLA 2014-04-01 07:36:41 EDT
*** Bug 431492 has been marked as a duplicate of this bug. ***
Comment 16 jules CLA 2014-04-02 03:35:38 EDT
(In reply to Dani Megert from comment #14)
> (In reply to Palmer Eldritch from comment #13)
> > Is there a target milestone for this one ?
> 
> No, no one is working on this.

That's a shame, as this is a real usability pain.  It means you can't start typing a new method before an existing folded one, because the text you type just gets folded into the existing one.
Comment 17 jules CLA 2014-04-02 03:38:27 EDT
(In reply to Dani Megert from comment #2)
> Only happens if you stop typing after 'static'.
> 
> Maybe we could try not to change the existing folding if an error gets
> introduced by newly typed code.

I'd say the rule should be simpler than that: never automatically change the folding if doing so would result on the line the cursor is on being hidden.
Comment 18 Eclipse Genie CLA 2019-02-10 08:06:19 EST
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.

--
The automated Eclipse Genie.
Comment 19 Eclipse Genie CLA 2021-01-31 09:33:23 EST
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.

--
The automated Eclipse Genie.
Comment 20 Eclipse Genie CLA 2023-02-02 09:26:18 EST
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.

--
The automated Eclipse Genie.