Project: Eclipse_Platform_UI
Bug 61247 [ViewMgmt] ClassCastException with minimized views on startup
Reported: 2004-05-06 12:18:53 | Status: resolved fixed

I200405060200 If you start a workbench that was shut down with minimized views you get the following stack trace: java.lang.ClassCastException at org.eclipse.ui.internal.PartStack.setState(PartStack.java:682) at org.eclipse.ui.internal.PartStack.restoreState(PartStack.java:567) at org.eclipse.ui.internal.RootLayoutContainer.restoreState(RootLayoutContainer.java:125) at org.eclipse.ui.internal.PerspectivePresentation.restoreState(PerspectivePresentation.java:1143) at org.eclipse.ui.internal.Perspective.restoreState(Perspective.java:790) at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2422) at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1398) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1206) at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1173) at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:1084) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:604) at org.eclipse.core.runtime.Platform.run(Platform.java:545) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1017) at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:167) at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:648) at org.eclipse.ui.internal.Workbench.init(Workbench.java:807) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1301) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:243) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:140) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:90) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:283) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:242) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:119) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:269) at org.eclipse.core.launcher.Main.run(Main.java:700) at org.eclipse.core.launcher.Main.main(Main.java:684)

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