public fun notifySelectedViewChanged()

in android/tooling/rib-intellij-plugin/src/main/kotlin/com/uber/intellij/plugin/android/rib/RibViewBrowser.kt [176:188]


  public fun notifySelectedViewChanged() {
    val node: Any? = currentTree.lastSelectedPathComponent
    if (node is DefaultMutableTreeNode && hasFocus) {
      val descriptor = node.userObject
      if (
        descriptor is RibViewNodeDescriptor &&
          descriptor.ribView != null &&
          descriptor.ribView.id.isNotEmpty()
      ) {
        selectionListener?.onSelectedViewChanged(descriptor.ribView)
      }
    }
  }