Make sure `invokeWhenUIReady` runnables are eventually invoked even in headless 
mode.

Tests that run in `NbSuiteModule` mode and use parsing never finish. The 
problem is that parsing is delayed until the main window is shown using 
`WindowManager.getDefault().invokeWhenUIReady`. However the tests are executed 
with `gui(false)` option and thus the main window is never shown, which implies 
the parsing never starts.

This change detects the headless mode and if so, invokes the provided 
`Runnable` implementations immediately (via `EventQueue.invokeLater`).

[ Full content available at: 
https://github.com/apache/incubator-netbeans/pull/907 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to