Bug 571234 - Selection in type hierarchy tree lost when editor file is saved
Summary: Selection in type hierarchy tree lost when editor file is saved
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.18   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-16 15:14 EST by Alexander Veit CLA
Modified: 2023-05-10 14:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Veit CLA 2021-02-16 15:14:33 EST
1. Open a type hierarchy with lots of elements.
2. Select a (anonymous) class in the type hierarchy tree by double click to open an editor.
3. Paste some code that triggers automatic "organize imports" in the editor.
4. Press Ctrl + S to save the editor contents.

=> The currently selected item in the hierarchy tree gets deselected and the root  element of the tree gets selected.

After that you have to manually search through the tree in order to find the  position where to resume work. This can be very tedious, especially when most of the labels in the tree are the same, as it is when you have many anonymous classes.
Comment 1 Eclipse Genie CLA 2023-05-10 14:50:32 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.

--
The automated Eclipse Genie.