Bug 560277 - [Project explorer] Hierarchical layout - resources in active Working Set should remain visible
Summary: [Project explorer] Hierarchical layout - resources in active Working Set shou...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.12   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 562667 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-02-18 08:40 EST by Luke Usherwood CLA
Modified: 2020-04-30 10:32 EDT (History)
1 user (show)

See Also:


Attachments
Minimal sample workspace (4.79 KB, application/x-zip-compressed)
2020-02-18 08:40 EST, Luke Usherwood CLA
no flags Details
A few scenarios of Working Sets not being supported (73.69 KB, image/png)
2020-02-18 08:41 EST, Luke Usherwood CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Usherwood CLA 2020-02-18 08:40:19 EST
Created attachment 281851 [details]
Minimal sample workspace

The Hierarchical layout in Project Explorer does not work together with Working Sets.

For example, when I click I "Select Working Set..." and pick the nice new option "Java Main Sources" then the Project Explorer view will go completely blank.

The attached image 3x Working Set options against 3x Presentation views. "Deselect Working Set" is the only WS option that seems usable with "Hierarchical View" (irrespective of the "Top Level Elements" setting).

The minimal sample workspace I will attach is like:

  repo-checkout
    parent-of-java-components
      java-project-A
    parent-of-native-components

This mirrors my real-world workspace containing high-level directories for Gradle (Java + Scala) and CMake (C++ and Fortran) parts of the build.

I imagine Hierarchical layout probably works fine for simple single-project checkouts. However with multiple (disjoint?) project hierarchies, my experience is that Working Sets become necessary, and the Hierarchical Layout becomes unusable.

I think the basic expectation is:

 * If a resource is present in the active Working Set, it should
   still be shown in the Project Explorer tree.

Maybe it can be implemented by modifying the existing filter "Nested Projects: hide top-level project if shown as nested"? (Something I only discovered as part of logging this.)


Details:

 * Eclipse SDK 2019-06 (4.12) (no Mylyn)
 * Windows 10 64-bit

Related: Bug 461346, Bug 491185

Possibly related? Bug 498060, Bug 461347 (I also tried closing projects while looking for a workaround), Bug 427897
Comment 1 Luke Usherwood CLA 2020-02-18 08:41:53 EST
Created attachment 281852 [details]
A few scenarios of Working Sets not being supported
Comment 2 Till Brychcy CLA 2020-04-30 10:32:08 EDT
*** Bug 562667 has been marked as a duplicate of this bug. ***