override fun onDoubleClick()

in src/main/kotlin/org/jetbrains/tinygoplugin/heapAllocations/toolWindow/TreeUtil.kt [12:20]


        override fun onDoubleClick(e: MouseEvent): Boolean {
            if (ModalityState.current().dominates(ModalityState.nonModal())) return false
            if (getPathForLocation(e.x, e.y) == null) return false
            val element = getPathForLocation(e.x, e.y)?.lastPathComponent
            if (element is HeapAllocNode) {
                OpenSourceUtil.navigate(true, element.getNavigatable())
            }
            return true
        }