mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-45146: project data save should use caller thread including edt
It's a caller responsibility to choose which thread will be used for a project save. There are use cases when the caller wants to use synchronous project e.g. StoreUtil.saveDocumentsAndProjectSettings.
This commit is contained in:
-4
@@ -3,7 +3,6 @@ package com.intellij.openapi.externalSystem.service.project.manage;
|
||||
|
||||
import com.intellij.concurrency.ConcurrentCollectionFactory;
|
||||
import com.intellij.configurationStore.SettingsSavingComponentJavaAdapter;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.application.PathManagerEx;
|
||||
import com.intellij.openapi.components.*;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
@@ -140,9 +139,6 @@ public class ExternalProjectsDataStorage implements SettingsSavingComponentJavaA
|
||||
if (!changed.compareAndSet(true, false)) {
|
||||
return;
|
||||
}
|
||||
if (!ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
LOG.assertTrue(!ApplicationManager.getApplication().isDispatchThread(), "Should not be called on EDT");
|
||||
}
|
||||
try {
|
||||
doSave(myProject, myExternalRootProjects.values());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user