Project: Eclipse_Platform_UI
Bug 178284 [DynamicUI] [Contributions] Loading/unloading action set leaves handlers and keybindings behind
Reported: 2007-03-20 10:51:53 | Status: verified fixed

Using I20070320-0010: After a bundle is uninstalled the large number of warnings like this are generated: Conflict for 'AUTOGEN:::org.eclipse.team.ui.UnmanagedFileContributions/org.eclipse.team.ui.replaceLocalHistory': HandlerActivation(commandId=AUTOGEN:::org.eclipse.team.ui.UnmanagedFileContributions/org.eclipse.team.ui.replaceLocalHistory,handler=ActionDelegateHandlerProxy(null,org.eclipse.team.internal.ui.history.ReplaceLocalHistory),expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@3aabc1),sourcePriority=16384): HandlerActivation(commandId=AUTOGEN:::org.eclipse.team.ui.UnmanagedFileContributions/org.eclipse.team.ui.replaceLocalHistory,handler=ActionDelegateHandlerProxy(null,org.eclipse.team.internal.ui.history.ReplaceLocalHistory),expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@3aabc1),sourcePriority=16384) With no stack traces attached Attempt to right-click on those warnings causes "Unhandled event loop exception", stack will be attached. Steps to reproduce: 1. Use a new plugin-in wizard to create a plugin-in project that contributes a menu item (Use "Hellow World" template) 2. Create a new launch configuration under "Eclipse Application", set program arguments to "-clean -console" 3. Debug this launch configuration. In the console of the host Eclipse type "ss" and note the ID of the plugin you created in the step 1. 4. In the console of the host Eclipse type "uninstall <id_from_step_3>"

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