mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-215166 DynamicPlugins: add overload for unloadPluginWithProgress with proper types, deprecate old one
GitOrigin-RevId: c21461cdcc952e630cd341698b3b9efcf4f20ff4
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user