mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[llm-vcs-grouped-diff] LLM-19751, make selection model public
(cherry picked from commit 5d0d9f9e07e7496cca9765f02554daa38adacc21) IJ-CR-180581 GitOrigin-RevId: 4017fe44f3bffaa86a88a39f14aafc7123918c24
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2df86d09f6
commit
73e764a8c6
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user