From b688d8b75b5b6bc9c1a608faea2a91c69ed7b9e1 Mon Sep 17 00:00:00 2001 From: Yuriy Artamonov Date: Sun, 19 Dec 2021 12:37:18 +0300 Subject: [PATCH] [ui] Remove @ApiStatus.ScheduledForRemoval for segmentedButton of UI DSL v1 GitOrigin-RevId: 8cc4ee95773741a4ad2840ae7b32f2f06f2376ed --- .../src/com/intellij/ui/layout/ButtonSelector.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ui/layout/ButtonSelector.kt b/platform/platform-impl/src/com/intellij/ui/layout/ButtonSelector.kt index b541dc5b549a..8a028ad82332 100644 --- a/platform/platform-impl/src/com/intellij/ui/layout/ButtonSelector.kt +++ b/platform/platform-impl/src/com/intellij/ui/layout/ButtonSelector.kt @@ -14,11 +14,11 @@ import com.intellij.ui.dsl.builder.SpacingConfiguration import com.intellij.ui.dsl.builder.components.SegmentedButtonAction import com.intellij.ui.dsl.builder.components.SegmentedButtonToolbar import com.intellij.ui.dsl.builder.impl.DialogPanelConfig -import org.jetbrains.annotations.ApiStatus +import org.jetbrains.annotations.ApiStatus.ScheduledForRemoval import java.awt.Dimension import java.util.function.Supplier -@ApiStatus.ScheduledForRemoval(inVersion = "2022.2") +@ScheduledForRemoval(inVersion = "2022.2") @Deprecated("Use Kotlin UI DSL Version 2") fun Row.buttonSelector(options: Collection, property: GraphProperty, renderer: (T) -> String): ButtonSelectorToolbar { val actionGroup = DefaultActionGroup(options.map { ButtonSelectorAction(it, property, renderer(it)) }) @@ -29,7 +29,6 @@ fun Row.buttonSelector(options: Collection, property: GraphProperty, r return toolbar } -@ApiStatus.ScheduledForRemoval(inVersion = "2022.2") @Deprecated("Use Kotlin UI DSL Version 2") fun Row.segmentedButton(options: Collection, property: GraphProperty, renderer: (T) -> String): SegmentedButtonToolbar { val actionGroup = DefaultActionGroup(options.map { SegmentedButtonAction(it, property, renderer(it)) }) @@ -39,7 +38,7 @@ fun Row.segmentedButton(options: Collection, property: GraphProperty, return toolbar } -@ApiStatus.ScheduledForRemoval(inVersion = "2022.2") +@ScheduledForRemoval(inVersion = "2022.2") @Deprecated("Use Kotlin UI DSL Version 2") class ButtonSelectorAction @JvmOverloads constructor(private val option: T, private val property: GraphProperty, @@ -83,7 +82,7 @@ private class ButtonSelector( } } -@ApiStatus.ScheduledForRemoval(inVersion = "2022.2") +@ScheduledForRemoval(inVersion = "2022.2") @Deprecated("Use Kotlin UI DSL Version 2") class ButtonSelectorToolbar internal constructor( place: String,