Community
Participate
Working Groups
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(){ } }
Moving to JDT/Text.
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.
Also with other modifiers, such as public, etc.
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).
Sorry not for 3.2.
*** Bug 324318 has been marked as a duplicate of this bug. ***
*** Bug 325962 has been marked as a duplicate of this bug. ***
*** Bug 384904 has been marked as a duplicate of this bug. ***
*** Bug 185665 has been marked as a duplicate of this bug. ***
*** Bug 403894 has been marked as a duplicate of this bug. ***
*** Bug 415433 has been marked as a duplicate of this bug. ***
*** Bug 422201 has been marked as a duplicate of this bug. ***
Is there a target milestone for this one ?
(In reply to Palmer Eldritch from comment #13) > Is there a target milestone for this one ? No, no one is working on this.
*** Bug 431492 has been marked as a duplicate of this bug. ***
(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.
(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.
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.