IJPL-215166 DynamicPlugins: add overload for unloadPluginWithProgress with proper types, deprecate old one

GitOrigin-RevId: c21461cdcc952e630cd341698b3b9efcf4f20ff4
This commit is contained in:
Vadim Salavatov
2025-11-18 19:55:15 +00:00
committed by intellij-monorepo-bot
parent e762a1b67c
commit a97d45d097
@@ -494,10 +494,22 @@ object DynamicPlugins {
return null
}
@Deprecated("use overload with PluginMainDescriptor parameter")
fun unloadPluginWithProgress(project: Project? = null,
parentComponent: JComponent?,
pluginDescriptor: IdeaPluginDescriptorImpl,
options: UnloadPluginOptions): Boolean {
if (pluginDescriptor !is PluginMainDescriptor) {
LOG.warn("Unexpected plugin descriptor type: $pluginDescriptor", Throwable())
return false
}
return unloadPluginWithProgress(project, parentComponent, pluginDescriptor, options)
}
fun unloadPluginWithProgress(project: Project? = null,
parentComponent: JComponent?,
pluginDescriptor: PluginMainDescriptor,
options: UnloadPluginOptions): Boolean {
return runProcess {
doUnloadPluginWithProgress(project, parentComponent, pluginDescriptor, options)
}