in src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/ui/DbConnectionItemRenderer.kt [53:67]
override fun getListCellRendererComponent(list: JList<out DbConnectionItem>?, value: DbConnectionItem?, index: Int, isSelected: Boolean, cellHasFocus: Boolean): Component {
rowComponent.apply {
background = if (isSelected) list?.selectionBackground else list?.background
if (isEnabled != list?.isEnabled) {
UIUtil.setEnabled(this, list?.isEnabled ?: false, true)
}
}
connectionNameComponent.icon = value?.icon
connectionNameComponent.text = value?.data?.name
connectionStringComponent.text = value?.data?.connectionString
sourceNameComponent.text = value?.data?.sourceName
return rowComponent
}