mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[ui] Remove @ApiStatus.ScheduledForRemoval for segmentedButton of UI DSL v1
GitOrigin-RevId: 8cc4ee95773741a4ad2840ae7b32f2f06f2376ed
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f61d78e395
commit
b688d8b75b
@@ -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 <T> Row.buttonSelector(options: Collection<T>, property: GraphProperty<T>, renderer: (T) -> String): ButtonSelectorToolbar {
|
||||
val actionGroup = DefaultActionGroup(options.map { ButtonSelectorAction(it, property, renderer(it)) })
|
||||
@@ -29,7 +29,6 @@ fun <T> Row.buttonSelector(options: Collection<T>, property: GraphProperty<T>, r
|
||||
return toolbar
|
||||
}
|
||||
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
|
||||
@Deprecated("Use Kotlin UI DSL Version 2")
|
||||
fun <T> Row.segmentedButton(options: Collection<T>, property: GraphProperty<T>, renderer: (T) -> String): SegmentedButtonToolbar {
|
||||
val actionGroup = DefaultActionGroup(options.map { SegmentedButtonAction(it, property, renderer(it)) })
|
||||
@@ -39,7 +38,7 @@ fun <T> Row.segmentedButton(options: Collection<T>, property: GraphProperty<T>,
|
||||
return toolbar
|
||||
}
|
||||
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
|
||||
@ScheduledForRemoval(inVersion = "2022.2")
|
||||
@Deprecated("Use Kotlin UI DSL Version 2")
|
||||
class ButtonSelectorAction<T> @JvmOverloads constructor(private val option: T,
|
||||
private val property: GraphProperty<T>,
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user