Project: Eclipse_Platform_UI
Bug 48784 [MPE] ClassCast exception Workbench page isPartVisiable for MultiPageSite
Reported: 2003-12-15 15:06:51 | Status: verified fixed

This causes problems when you have nested editors in a MulitPageEditor. Nested editors share one site, and when a nested editor calls isPartVisible it returns the parent MultiPageEditorSite. I not sure why MultiPageEditorSite does not inherit from PartSite, but it doesnt and the call throws a classException. public boolean isPartVisible(IWorkbenchPart part) { return ((PartSite)part.getSite()).getPane().isVisible(); } Thanks for your help,

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java