Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344176 - [Perspectives] Folder layout with only placeholders gets rendered
Summary: [Perspectives] Folder layout with only placeholders gets rendered
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-28 14:29 EDT by Remy Suen CLA
Modified: 2019-11-14 02:22 EST (History)
2 users (show)

See Also:


Attachments
Perspective rendering patch v1 (2.25 KB, patch)
2011-04-28 14:31 EDT, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.