git-branches-dashboard: add ability to open manage remotes dialog from Remote node...
[idea/community.git] / plugins / git4idea / src / git4idea / ui / branch / dashboard / BranchesTree.kt
index ba9230a42d5f20c80b160d1a18b215c114971a64..ac2f31ff83ab6386d5c701b64c3018cff214386a 100644 (file)
@@ -251,6 +251,8 @@ internal class FilteringBranchesTree(project: Project,
 
   fun getSelectedRemotes() = component.getSelectedRemotes()
 
+  fun getSelectedBranchNodes() = component.getSelectedNodes().map(BranchTreeNode::getNodeDescriptor).toSet()
+
   private fun restorePreviouslyExpandedPaths() {
     TreeUtil.restoreExpandedPaths(component, expandedPaths.toList())
   }