Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367682

Summary: Ugly/confusing presentation of (sub) source folders in C/C++ view
Product: [Tools] CDT Reporter: Andrew Gvozdev <angvoz.dev>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Andrew Gvozdev CLA 2011-12-31 14:52:50 EST
Cloned from: bug 181020: Ugly/confusing presentation of (sub) source folders in C/C++ view
https://bugs.eclipse.org/bugs/show_bug.cgi?id=181020

Well, bug 181020 deals with the problem by introducing a preference for different presentation. But the ugliness is still there with the default presentation.
Having using this presentation (and its benefits) for quite a bit, I'd say that ugliness comes from
 a) useless empty folder chain in the regular resource tree leading to the source folder but not displaying it, see attachment 64062 [details],
 b) buggy implementation, i.e. inconsistent showing/hiding source folders with non-trivial nesting in the regular resource tree.

On the other hand,
 c) there is a point in displaying the empty tree branch because otherwise it could be problematic to access the folders in the middle (for example to add files). This would be a rare occasion though.

It would be better for everyday use to filter out the useless folder chain (a). But to make possible (c) there should be a way to turn it back on temporarily. I think it could be done via "Filters" in View Menu (pointed down triangle in top right corner). Also, to make it less ugly when present, it should also display the source folder like in attachment 138571 [details].