Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 535050 - [Project Explorer] Expansion state of a project is lost when another file is opened
Summary: [Project Explorer] Expansion state of a project is lost when another file is ...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 4.8 RC2   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 505988
  Show dependency tree
 
Reported: 2018-05-24 03:16 EDT by Vikas Chandra CLA
Modified: 2018-05-24 12:05 EDT (History)
4 users (show)

See Also:
Vikas.Chandra: review+
sravankumarl: review+


Attachments
Image showing the problem (120.44 KB, image/jpeg)
2018-05-24 03:16 EDT, Vikas Chandra CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas Chandra CLA 2018-05-24 03:16:32 EDT
Created attachment 274160 [details]
Image showing the problem

1) Create plugin project, P1
2) Create another plugin project , p2
3) Expand the project to show 1  .java file each in both projects 
4) Double click java file in one of the project.

Expansion state of all other projects except the project in which  file is being double clicked goes to collapsed state.

Same behaviour happens if I do Close all editors or any other such action.

See image
Comment 1 Noopur Gupta CLA 2018-05-24 03:23:12 EDT
From Vikas: 1st March 2018 I build works OK. So this is a regression.
Comment 2 Dani Megert CLA 2018-05-24 06:09:07 EDT
Does this also happen in the Package Explorer?

Can you nail it down to a build or commit?
Comment 3 Vikas Chandra CLA 2018-05-24 06:54:56 EDT
Package explorer seems to work fine.

Works well on Build id: I20180327-0805

Doesn't work on Build id: I20180404-2000


If anyone has any intermediate, they can check this on that
Comment 4 Dani Megert CLA 2018-05-24 07:00:07 EDT
Please check whether this is causing the issue:
http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=fabbb8db7d601c90cfceb3a7618111061f79ec4a
Comment 5 Vikas Chandra CLA 2018-05-24 07:15:43 EDT
>>Please check whether this is causing the issue

Awesome! This is the commit that causes this problem.

Although comment#0 looks like a benign issue, for someone working on a junit and selecting test classes to run and then debugging it, I lose the selection everytime I open or close any file from any other project. It is very annoying ( almost "unusable" to debug a junit test failure or anything related).
Comment 6 Dani Megert CLA 2018-05-24 08:45:35 EDT
This regression is bad. It also happens on a single project and also when a file is closed.

Reverted the fix for bug with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=8efc52ed89631fe3d613cfe807ce80ae9e11bb57
Comment 7 Vikas Chandra CLA 2018-05-24 12:05:14 EDT
verified on
Version: Photon (4.8)
Build id: I20180524-0900