[llm-vcs-grouped-diff] LLM-19751, make selection model public

(cherry picked from commit 5d0d9f9e07e7496cca9765f02554daa38adacc21)

IJ-CR-180581

GitOrigin-RevId: 687372dbf9c35a64a673b8a16192da425d13a522
This commit is contained in:
Dmitry Osinovskiy
2025-10-31 06:05:42 +00:00
committed by intellij-monorepo-bot
parent 273541eb88
commit 8c668a4e69
@@ -9,7 +9,7 @@ import javax.swing.tree.TreePath
* SelectionModel that ignores selection requests for nodes marked with [ChangesBrowserNodeKeys.NON_SELECTABLE].
*/
@ApiStatus.Internal
internal class NonSelectableNodeFilteringSelectionModel : DefaultTreeSelectionModel() {
class NonSelectableNodeFilteringSelectionModel : DefaultTreeSelectionModel() {
private fun TreePath?.isNonSelectable(): Boolean {
if (this == null) return false
val node = this.lastPathComponent as? ChangesBrowserNode<*> ?: return false