mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
installers fixed: do not instantiate ProgressWindow in headless environment
This commit is contained in:
@@ -594,6 +594,7 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
|
||||
boolean writeAccessAllowed = isInsideWriteActionEDTOnly();
|
||||
if (writeAccessAllowed // Disallow running process in separate thread from under write action.
|
||||
// The thread will deadlock trying to get read action otherwise.
|
||||
|| isHeadlessEnvironment() && !isUnitTestMode()
|
||||
) {
|
||||
LOG.debug("Starting process with progress from within write action makes no sense");
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user