Bug 403894 - [projection] Cursor jumps in Java Editor with everything collapsed
Summary: [projection] Cursor jumps in Java Editor with everything collapsed
Status: CLOSED DUPLICATE of bug 104373
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.2.2   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-20 09:53 EDT by Joachim Fuchs CLA
Modified: 2013-11-21 09:28 EST (History)
1 user (show)

See Also:


Attachments
this is what it looks like (3.69 KB, image/png)
2013-03-21 10:47 EDT, Joachim Fuchs CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Fuchs CLA 2013-03-20 09:53:09 EDT
When I collapse everything in the java editor and start to type between two (collapsed) methods something like 'public static' and then rest for a second and then want to go on typing the code behind the cursor is expanded for some reason which I could accept even though I collapsed the code for a reason. But the cursor then is positioned between the javadoc block of the first method behind my typing and that method.
Comment 1 Dani Megert CLA 2013-03-21 09:52:34 EDT
This only happens if you type on a collapsed line. The behavior is intended, so that what you type ends on that visible line.

Please reopen with an example if you see this when typing on a line which is not itself collapsed i.e. has no (+) in front of it.
Comment 2 Joachim Fuchs CLA 2013-03-21 10:47:07 EDT
Created attachment 228850 [details]
this is what it looks like

When I started typing there was no plus nor minus in front of the line. 

The comment of the following method is simply ognored, that is what happens. It is valid in terms of compilability but it is probably not desired.
Comment 3 Dani Megert CLA 2013-03-21 10:59:03 EDT
Thanks Jochim. The picture explains it. The key is really, that you typed one of the keywords correctly. This is the same as bug 185665.

*** This bug has been marked as a duplicate of bug 185665 ***
Comment 4 Dani Megert CLA 2013-11-21 09:28:08 EST

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