in intellij/src/main/kotlin/motif/intellij/hierarchy/descriptor/ScopeHierarchyRootDescriptor.kt [38:51]
override fun updateText(text: CompositeAppearance) {
when (status) {
ScopeHierarchyBrowser.Status.UNINITIALIZED -> {
text.ending.addText(LABEL_CLICK_REFRESH)
}
ScopeHierarchyBrowser.Status.INITIALIZING -> {
text.ending.addText(LABEL_WAIT)
}
else -> {
val textAttr: TextAttributes = getDefaultTextAttributes(graph.errors.isNotEmpty())
text.ending.addText(LABEL_ROOT_SCOPES, textAttr)
}
}
}