Bug 24253 - [misc] Cursor position lost when toggling from/to segmented view
Summary: [misc] Cursor position lost when toggling from/to segmented view
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-01 07:18 EDT by Dani Megert CLA
Modified: 2008-04-13 13:43 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2002-10-01 07:18:24 EDT
smoke for 20021001

1. Set the cursor inside a method
2. Toggle to segmented view
==> cursor position gets lost: it is placed on top
3. Place cursor inside method
4. Toggle to unsegmented view
==> cursor position gets lost: it is placed at beginning of method
Comment 1 Dani Megert CLA 2002-10-01 07:34:45 EDT
Note:
- It also happened that the Outline selection gets out of synch with the member
shown in the segmented view.
- switching back and forth between segmented view resulted in the type being
selected in the Outline view
- sometime the wrong member is placed in the segmented view i.e. I put the
cursor in method a() then switch to segmented view and another method (above
one) is shown. This only happened when the file was dirty.

The CU I used to test was TestCase.java
Comment 2 Dani Megert CLA 2003-06-13 10:17:49 EDT
Still happens with I20030611
Comment 3 Mike Wilson CLA 2008-04-13 13:43:09 EDT
Tested with R3.4 M6. 

Switching to "Only show the selected Java element" now works properly (i.e. the cursor position is not changed).

However, turning off "Only show the selected Java element" mode still fails. It causes the cursor position to reset to the start of what was the contents when only the element was visible.