Project: Eclipse_Platform_UI
Bug 308675 [Compatibility] Active workbench window not set on restart
Reported: 2010-04-09 13:29:58 | Status: resolved fixed

1. Start the compatibility layer. 2. Shut it down. 3. Start it back up. 4. Open a file. 5. Ctrl+W. org.eclipse.core.commands.ExecutionException: No activeWorkbenchWindow found while executing org.eclipse.ui.file.close at org.eclipse.ui.handlers.HandlerUtil.noVariableFound(HandlerUtil.java:40) at org.eclipse.ui.handlers.HandlerUtil.getVariableChecked(HandlerUtil.java:89) at org.eclipse.ui.handlers.HandlerUtil.getActiveWorkbenchWindowChecked(HandlerUtil.java:210) at org.eclipse.ui.internal.CloseEditorHandler.execute(CloseEditorHandler.java:45) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:600) at org.eclipse.e4.core.internal.di.MethodRequestor.callMethod(MethodRequestor.java:61) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:35) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:220) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:195) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:133) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:134) at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:260) at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:456) at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:506) at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:339) at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:285) at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:74) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

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