| Summary: | [Compatibility] Jubula's 'Functional Text Execution' perspective comes up blank | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Remy Suen <remy.suen> | ||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Remy Suen <remy.suen> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | pwebster | ||||
| Version: | 4.1 | ||||||
| Target Milestone: | 4.1.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 350080, 350266 | ||||||
| Attachments: |
|
||||||
Created attachment 198531 [details]
ModeledFolderLayout patch v1
We only ask the part stack to become rendered when we finally add a view to it. However, this is insufficient because the part stack's parent controls may not be rendered. The fix is to iterate upwards to the perspective and ensure that the entire chain is being rendered.
(In reply to comment #1) > Created attachment 198531 [details] > ModeledFolderLayout patch v1 Patch released to R4_1_maintenance. Verified that the perspective is not blank with M20110817-2001 on Windows XP. |
This perspective comes up blank for some reasons. The layout code below will reproduce the problem. public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout left = layout.createFolder("left", //$NON-NLS-1$ IPageLayout.LEFT, 0.27f, editorArea); IFolderLayout topLeft = layout.createFolder("topLeft", //$NON-NLS-1$ IPageLayout.TOP, 0.27f, "left"); //$NON-NLS-1$ IFolderLayout topRight = layout.createFolder("topRight", //$NON-NLS-1$ IPageLayout.RIGHT, 0.6f, editorArea); IFolderLayout bottomRight = layout.createFolder("bottomRight", //$NON-NLS-1$ IPageLayout.BOTTOM, 0.5f, "topRight"); //$NON-NLS-1$ IFolderLayout middle = layout.createFolder("middle", //$NON-NLS-1$ IPageLayout.LEFT, 0.27f, editorArea); IFolderLayout middleBottom = layout.createFolder("middleBottom", //$NON-NLS-1$ IPageLayout.BOTTOM, 0.8f, "middle"); //$NON-NLS-1$ left.addView(IPageLayout.ID_BOOKMARKS); topLeft.addView(IPageLayout.ID_RES_NAV); middle.addView(IPageLayout.ID_OUTLINE); middleBottom.addView(IPageLayout.ID_PROGRESS_VIEW); topRight.addView(IPageLayout.ID_PROBLEM_VIEW); bottomRight.addView(IPageLayout.ID_PROJECT_EXPLORER); }