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

Bug 350082

Summary: [Compatibility] Jubula's 'Functional Text Execution' perspective comes up blank
Product: [Eclipse Project] Platform Reporter: Remy Suen <remy.suen>
Component: UIAssignee: 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:
Description Flags
ModeledFolderLayout patch v1 none

Description Remy Suen CLA 2011-06-22 13:17:57 EDT
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);

}
Comment 1 Remy Suen CLA 2011-06-24 09:43:26 EDT
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.
Comment 2 Remy Suen CLA 2011-06-24 09:45:02 EDT
(In reply to comment #1)
> Created attachment 198531 [details]
> ModeledFolderLayout patch v1

Patch released to R4_1_maintenance.
Comment 3 Remy Suen CLA 2011-08-26 10:56:12 EDT
Verified that the perspective is not blank with M20110817-2001 on Windows XP.