override fun update()

in src/main/kotlin/org/jetbrains/tinygoplugin/heapAllocations/toolWindow/model/TinyGoHeapAllocsTreeNodes.kt [123:129]


    override fun update(project: Project, presentation: PresentationData) {
        presentation.addText(heapAlloc.file.name, SimpleTextAttributes.REGULAR_ATTRIBUTES)
        presentation.setIcon(GoIcons.ICON)
        presentation.tooltip = heapAlloc.reason
        if (heapAlloc.line >= 0) presentation.addText(" :${heapAlloc.line}", SimpleTextAttributes.GRAYED_ATTRIBUTES)
        presentation.addText(" ${heapAlloc.reason}", SimpleTextAttributes.REGULAR_ITALIC_ATTRIBUTES)
    }