Bug 574472 - ClassCastException in PartRenderingEngine.subscribeVisibilityHandler() during startup of RCP application
Summary: ClassCastException in PartRenderingEngine.subscribeVisibilityHandler() during...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.17   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-25 11:18 EDT by Ron Anderson CLA
Modified: 2021-06-25 11:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Anderson CLA 2021-06-25 11:18:07 EDT
Our RCP based application is throwing ClassCastExceptions in PartRenderingEngine.subscribeVisibilityHandler() during startup.

ContributedPartRenderer.getUIContainer() is returning a Rectangle which is being cast to a Composite causing the error. 

This appears to be related to restoring the workbench layout from a previous invocation since it doesn't happen on the first execution after removing the .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi