mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
IJPL-159590 Set accessible name for import settings checkboxes
GitOrigin-RevId: 7d4d6ec7a3aeb9134cba38ec2027d170fb141f67
This commit is contained in:
committed by
intellij-monorepo-bot
parent
65170308b0
commit
146b23a036
@@ -17,6 +17,7 @@ import com.intellij.ui.dsl.builder.panel
|
||||
import com.intellij.ui.dsl.builder.selected
|
||||
import com.intellij.ui.dsl.gridLayout.UnscaledGaps
|
||||
import com.intellij.util.ui.JBUI
|
||||
import com.intellij.util.ui.accessibility.AccessibleContextUtil
|
||||
import java.awt.BorderLayout
|
||||
import java.awt.event.ActionEvent
|
||||
import javax.swing.AbstractAction
|
||||
@@ -61,13 +62,14 @@ open class BaseSettingPane(val item: SettingItem, protected val changeHandler: (
|
||||
row {
|
||||
text(setting.name).customize(UnscaledGaps(0, 0, 2, 0)).resizableColumn()
|
||||
if (item.configurable) {
|
||||
checkBox("")
|
||||
val cb = checkBox("")
|
||||
.selected(item.selected)
|
||||
.onChanged { cb ->
|
||||
item.selected = cb.isSelected
|
||||
changeHandler()
|
||||
}
|
||||
.customize(UnscaledGaps(0, 0, 2, 0))
|
||||
AccessibleContextUtil.combineAccessibleStrings(setting.name, ": ", setting.comment)?.let { cb.accessibleName(it) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user