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

Bug 344176

Summary: [Perspectives] Folder layout with only placeholders gets rendered
Product: [Eclipse Project] Platform Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: prakash, pwebster
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
Perspective rendering patch v1 none

Description Remy Suen CLA 2011-04-28 14:29:07 EDT
The perspective factory implementation below will create an empty stack to the left of the editor area. Since there's nothing visible there, it shouldn't even be rendered.

public void createInitialLayout(IPageLayout factory) {
  IFolderLayout placeHolderLeft = factory.createFolder(
      "left", IPageLayout.LEFT, (float) 0.25, IPageLayout.ID_EDITOR_AREA); 
  placeHolderLeft.addPlaceholder(IPageLayout.ID_RES_NAV);
}
Comment 1 Remy Suen CLA 2011-04-28 14:31:12 EDT
Created attachment 194299 [details]
Perspective rendering patch v1

The fix is to make generated part stacks of folder layouts not be rendered by default. When a view is added to it, then we will force it (the view's parent) to be rendered.
Comment 2 Remy Suen CLA 2011-04-28 14:31:43 EDT
Comment on attachment 194299 [details]
Perspective rendering patch v1

(In reply to comment #1)
> Created attachment 194299 [details]
> Perspective rendering patch v1
> 
> The fix is to make generated part stacks of folder layouts not be rendered by
> default. When a view is added to it, then we will force it (the view's parent)
> to be rendered.

Whoops, this should've gone to bug 344173.
Comment 3 Prakash Rangaraj CLA 2011-06-03 02:08:50 EDT
Guess is [Presentations]. If not please reassign.
Comment 4 Lars Vogel CLA 2019-11-14 02:22:29 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.