mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert "[kotlin] Put configureLibraryJar() in KotlinWithLibraryConfigurator under WA for configureModuleWithLibrary()"
This reverts commit a26bfde0489c2d5e28e33bfe9fcd89c402a2061e. GitOrigin-RevId: b08e0a2202ed71088d389bfdf13c9d8b2f8c276c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ad645bf141
commit
8ea1cd2019
+4
-10
@@ -219,12 +219,10 @@ abstract class KotlinWithLibraryConfigurator<P : LibraryProperties<*>> protected
|
||||
?: error("Kotlin Library has to be created in advance")) as LibraryEx
|
||||
|
||||
library.modifiableModel.let { libraryModel ->
|
||||
// will be performed later on EDT
|
||||
writeActions.addOrExecute { runWriteAction {
|
||||
configureLibraryJar(project, libraryModel, libraryJarDescriptor, collector, ProgressManager.getGlobalProgressIndicator())
|
||||
libraryModel.commit()
|
||||
}
|
||||
}
|
||||
configureLibraryJar(project, libraryModel, libraryJarDescriptor, collector, ProgressManager.getGlobalProgressIndicator())
|
||||
|
||||
// commit will be performed later on EDT
|
||||
writeActions.addOrExecute { runWriteAction { libraryModel.commit() } }
|
||||
}
|
||||
|
||||
addLibraryToModuleIfNeeded(module, library, collector, writeActions)
|
||||
@@ -239,10 +237,6 @@ abstract class KotlinWithLibraryConfigurator<P : LibraryProperties<*>> protected
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates KotlinJavaRuntime.xml
|
||||
* Should be performed under a write action.
|
||||
*/
|
||||
fun configureLibraryJar(
|
||||
project: Project,
|
||||
library: LibraryEx.ModifiableModelEx,
|
||||
|
||||
Reference in New Issue
Block a user