Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329079 - CCE thrown when trying to render a window with a part that's not visible
Summary: CCE thrown when trying to render a window with a part that's not visible
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.1 M5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-29 13:51 EDT by Remy Suen CLA
Modified: 2011-01-06 10:09 EST (History)
0 users

See Also:


Attachments
PartRenderingEngineTests tests patch v1 (1.45 KB, patch)
2010-10-29 13:52 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 2010-10-29 13:51:27 EDT
java.lang.ClassCastException: org.eclipse.swt.layout.FillLayout
	at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.childRendered(WBWRenderer.java:521)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:502)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:554)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:58)
	at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:456)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:490)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:554)
Comment 1 Remy Suen CLA 2010-10-29 13:52:34 EDT
Created attachment 182066 [details]
PartRenderingEngineTests tests patch v1

Test case to reproduce the problem.
Comment 2 Remy Suen CLA 2010-10-29 14:34:48 EDT
The composite is set with a FillLayout initially in TrimmedPartLayout's constructor.

Then WBWRenderer's getUIContainer(MUIElement) method magically decides to swap the layout out for something else.
Comment 3 Remy Suen CLA 2011-01-06 10:09:44 EST
(In reply to comment #1)
> Created attachment 182066 [details]
> PartRenderingEngineTests tests patch v1

Gone stale and released an updated version to HEAD. The CCE has been fixed by the changes from bug 333496.