Bug 560277

Summary: [Project explorer] Hierarchical layout - resources in active Working Set should remain visible
Product: [Eclipse Project] Platform Reporter: Luke Usherwood <ldubox-coding101>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: gayanper
Version: 4.12   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Minimal sample workspace
none
A few scenarios of Working Sets not being supported none

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. ***