mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[wsm] Fix for ArchetypesTest one more use of commiting modifiable model without WA if SDD not in the storage
GitOrigin-RevId: 56cf2bcc730ff40075c2d7cefe82254c81876a9c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9c4045d13c
commit
1d7d5ea754
@@ -472,14 +472,7 @@ public final class JavaSdkImpl extends JavaSdk {
|
||||
addDocs(jdkHomePath, sdkModificator, null);
|
||||
attachJdkAnnotations(sdkModificator);
|
||||
|
||||
Application application = ApplicationManager.getApplication();
|
||||
Runnable runnable = () -> sdkModificator.commitChanges();
|
||||
if (application.isDispatchThread()) {
|
||||
application.runWriteAction(runnable);
|
||||
} else {
|
||||
application.invokeAndWait(() -> application.runWriteAction(runnable));
|
||||
}
|
||||
|
||||
sdkModificator.applyChangesWithoutWriteAction();
|
||||
return jdk;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user