mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Show tooltips above columns in the MultipleFileMergeDialog
In case of short branch names, they will repeat the table header, but if branch name is long it might be more convenient to see a tooltip instead of resizing columns. Relates to IDEA-195517
This commit is contained in:
@@ -176,10 +176,11 @@ open class MultipleFileMergeDialog(
|
||||
}
|
||||
|
||||
private class ColumnInfoAdapter(private val base: ColumnInfo<Any, Any>,
|
||||
columnName: String) : ColumnInfo<DefaultMutableTreeNode, Any>(columnName) {
|
||||
private val columnName: String) : ColumnInfo<DefaultMutableTreeNode, Any>(columnName) {
|
||||
override fun valueOf(node: DefaultMutableTreeNode) = (node.userObject as? VirtualFile)?.let { base.valueOf(it) }
|
||||
override fun getMaxStringValue() = base.maxStringValue
|
||||
override fun getAdditionalWidth() = base.additionalWidth
|
||||
override fun getTooltipText() = base.tooltipText ?: columnName
|
||||
}
|
||||
|
||||
private class MyTable(private val tableModel: ListTreeTableModelOnColumns) : TreeTable(tableModel) {
|
||||
|
||||
Reference in New Issue
Block a user