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

Bug 354089

Summary: [Perspectives] Stacking an invisible view to a view placeholder creates a visible empty folder
Product: [Eclipse Project] Platform Reporter: Mikhail Kalkov <mikhail.kalkov>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: emoffatt, pwebster, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard: stalebug
Attachments:
Description Flags
Sample project demonstrating the bug
none
Simple patch that fixes the problem none

Description Mikhail Kalkov CLA 2011-08-07 09:57:19 EDT
Build Identifier: I20110613-1736

= Problem =
Assume there is a view placeholder A directly in the page layout. When one tries to stack another view placeholder B next to it, a folder is automatically created in place of A, and both A and B are placed into it. I would expect that a folder placeholder should be created instead if both A and B are placeholders.

= Consequences =
When a new perspective is opened, I observe a (visible) empty folder, which contains (invisible) placeholders for two other views, but when Eclipse is restarted this folder is replaced by an (invisible) folder placeholder, just as I expected it to be in the first place.

Reproducible: Always

Steps to Reproduce:
1. Create a new perspective and add a placeholder for view A directly to its layout.
2. Stack a placeholder for view B next to the one for A using perspectiveExtensions extension point in plugin.xml
3. Start eclipse and observe that an empty folder is created instead of a folder placeholder.
Comment 1 Mikhail Kalkov CLA 2011-08-07 10:03:18 EDT
Created attachment 201044 [details]
Sample project demonstrating the bug
Comment 2 Mikhail Kalkov CLA 2011-08-07 11:39:01 EDT
Created attachment 201045 [details]
Simple patch that fixes the problem

Please, note that I have never compiled org.eclipse.ui plug-in with this patch applied, but nevertheless believe it would work based on observing Eclipse behaviour in debugger.
Comment 3 Mikhail Kalkov CLA 2011-08-07 12:27:16 EDT
The following two bug reports look related:
 - https://bugs.eclipse.org/bugs/show_bug.cgi?id=188570 (a different problem that is likely to have the same root cause, reported in 3.3)
 - https://bugs.eclipse.org/bugs/show_bug.cgi?id=58931 (a documentation enhancement request, reported in 3.0)

Unfortunately, I cannot add them to the "See Also" field because it never recognizes these links as actual bug URLs.
Comment 4 Remy Suen CLA 2011-08-07 15:35:20 EDT
Pretty sure I've seen this before.
Comment 5 Lars Vogel CLA 2019-11-14 03:21:58 EST
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.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.