Project: Eclipse_Platform_UI
Bug 87208 [GlobalActions] CCE in RetargetAction while switching between views and editors
Reported: 2005-03-05 05:24:43 | Status: resolved fixed

java.lang.ClassCastException: org.eclipse.ui.actions.RetargetAction at org.eclipse.ui.actions.RetargetAction.propagateChange(RetargetAction.java:197) at org.eclipse.ui.actions.RetargetAction$1.propertyChange(RetargetAction.java:60) at org.eclipse.jface.action.Action.firePropertyChange(Action.java:597) at org.eclipse.jface.action.Action.firePropertyChange(Action.java:582) at org.eclipse.ui.actions.RetargetAction.setActionHandler(RetargetAction.java:265) at org.eclipse.ui.actions.RetargetAction.partActivated(RetargetAction.java:146) at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:52) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1015) at org.eclipse.core.runtime.Platform.run(Platform.java:757) at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:50) at org.eclipse.ui.internal.WWinPartService.firePartActivated(WWinPartService.java:209) at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:206) at org.eclipse.ui.internal.WWinPartService$1.partActivated(WWinPartService.java:36) at org.eclipse.ui.internal.PartListenerList2$1.run(PartListenerList2.java:48) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1015) at org.eclipse.core.runtime.Platform.run(Platform.java:757) at org.eclipse.ui.internal.PartListenerList2.firePartActivated(PartListenerList2.java:46) at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:1501) at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2821) at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2479) at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:314) at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:356) at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:728) at org.eclipse.ui.internal.PartStack.access$0(PartStack.java:711) at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:93) at org.eclipse.ui.internal.presentations.newapi.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:116) at org.eclipse.ui.internal.presentations.newapi.AbstractTabFolder.fireEvent(AbstractTabFolder.java:263) at org.eclipse.ui.internal.presentations.newapi.AbstractTabFolder.fireEvent(AbstractTabFolder.java:272) at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1) at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:81) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:866) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:851) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:659) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3141) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1925) at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:287) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2908) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2541) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150) 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:585) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268) at org.eclipse.core.launcher.Main.basicRun(Main.java:260) at org.eclipse.core.launcher.Main.run(Main.java:887) at org.eclipse.core.launcher.Main.main(Main.java:871)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/RetargetAction.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/commands/ActionHandler.java