Bug 350082 - [Compatibility] Jubula's 'Functional Text Execution' perspective comes up blank
Summary: [Compatibility] Jubula's 'Functional Text Execution' perspective comes up blank
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 4.1.1   Edit
Assignee: Remy Suen CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 350080 350266
  Show dependency tree
 
Reported: 2011-06-22 13:17 EDT by Remy Suen CLA
Modified: 2011-08-26 10:56 EDT (History)
1 user (show)

See Also:


Attachments
ModeledFolderLayout patch v1 (1.51 KB, patch)
2011-06-24 09:43 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-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.