diff --git a/plugins/allopen/allopen-ide/src/AllOpenModelBuilderService.kt b/plugins/allopen/allopen-ide/src/AllOpenModelBuilderService.kt index 8c40f2c7023..65bf3740d5a 100644 --- a/plugins/allopen/allopen-ide/src/AllOpenModelBuilderService.kt +++ b/plugins/allopen/allopen-ide/src/AllOpenModelBuilderService.kt @@ -21,7 +21,11 @@ import org.jetbrains.kotlin.annotation.plugin.ide.AnnotationBasedPluginModel import org.jetbrains.kotlin.annotation.plugin.ide.AnnotationBasedPluginModelBuilderService import org.jetbrains.kotlin.annotation.plugin.ide.AnnotationBasedPluginProjectResolverExtension -interface AllOpenModel : AnnotationBasedPluginModel +interface AllOpenModel : AnnotationBasedPluginModel { + override fun copy(): AllOpenModel { + return AllOpenModelImpl(annotations.toList(), presets.toList()) + } +} class AllOpenModelImpl( override val annotations: List, diff --git a/plugins/annotation-based-compiler-plugins-ide-support/src/AnnotationBasedPluginProjectResolverExtension.kt b/plugins/annotation-based-compiler-plugins-ide-support/src/AnnotationBasedPluginProjectResolverExtension.kt index b2d57495822..7a68f2ddba2 100644 --- a/plugins/annotation-based-compiler-plugins-ide-support/src/AnnotationBasedPluginProjectResolverExtension.kt +++ b/plugins/annotation-based-compiler-plugins-ide-support/src/AnnotationBasedPluginProjectResolverExtension.kt @@ -33,6 +33,8 @@ interface AnnotationBasedPluginModel : Serializable { val annotations: List val presets: List + fun copy(): AnnotationBasedPluginModel + val isEnabled get() = annotations.isNotEmpty() || presets.isNotEmpty() } @@ -56,7 +58,7 @@ abstract class AnnotationBasedPluginProjectResolverExtension,