java.lang.IllegalStateException: Application does not have an active window
at org.eclipse.e4.ui.internal.workbench.ApplicationPartServiceImpl.getActiveWindowService(ApplicationPartServiceImpl.java:53)
at org.eclipse.e4.ui.internal.workbench.ApplicationPartServiceImpl.createPart(ApplicationPartServiceImpl.java:167)
at org.eclipse.ui.tests.e4.CloseAllHandlerTest.createAndOpenE4Part(CloseAllHandlerTest.java:200)
at org.eclipse.ui.tests.e4.CloseAllHandlerTest.testCloseMixedEditorTypes(CloseAllHandlerTest.java:117)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
Originally posted by @akurtakov in https://github.com/eclipse-platform/eclipse.platform.ui/issues/2360#issuecomment-2430909529