| Summary: | [Compatibility] View is not displayed if added relative to a placeholder view | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sarah <sarah.brake> |
| Component: | UI | Assignee: | Remy Suen <remy.suen> |
| Status: | VERIFIED FIXED | QA Contact: | Remy Suen <remy.suen> |
| Severity: | normal | ||
| Priority: | P3 | CC: | remy.suen |
| Version: | 4.1 | ||
| Target Milestone: | 4.2 M2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Hi Sarah, is this bug related to bug 350082? (In reply to comment #1) > Hi Sarah, is this bug related to bug 350082? This is similar to that bug, but this perspective doesn't have any folder layouts. I think the fix would be similar to what was done in the ModeledFolderLayout, just for Placeholder views. Fix pushed to R4_development. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?h=R4_development&id=57fb15d4eb534df186fd0b930c81cdc5c3137adf Thank you for bringing this bug to our attention, Sarah! (In reply to comment #3) > Fix pushed to R4_development. > http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?h=R4_development&id=57fb15d4eb534df186fd0b930c81cdc5c3137adf > > Thank you for bringing this bug to our attention, Sarah! Thanks! This worked for me. Verified with I20110913-0200 on Windows XP. Thanks again for the bug report, Sarah. |
Build Identifier: I20110620-1631 If a perspective layout is designed such that the first view added to the IPageLayout is added using layout.addPlaceholder(...), when the perspective is displayed the perspective appears empty. If additional views are then added to the perspective, the views display as expected. Stepping through the perspective container hierarchy, it looks like the base PartSashContainer is not getting the toBeRendered flag set to true, although lower level PartSash/PartStacks do have the correct toBeRendered values. Reproducible: Always Steps to Reproduce: 1. Create an IPerspectiveFactory with the following createInitialLayout: public void createInitialLayout(final IPageLayout layout) { final String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.addPlaceholder(<HiddenView>.ID, IPageLayout.BOTTOM, 0.5f, editorArea); layout.addView(<VisibleView>.ID, IPageLayout.RIGHT, 0.5f, <HiddenView>.ID); } 2. Open the created perspective and no views will display.