in idea-plugin/src/main/java/org/jetbrains/bunches/idea/actions/ApplyChangesAction.kt [41:58]
protected fun showInfoBalloon(list: List<String>, file: VirtualFile, project: Project) {
val statusBar = WindowManager.getInstance().getStatusBar(project)
val text = if (list.isEmpty()) {
"No bunch files changed"
} else {
"Changes from ${file.name} applied to:\n" + list.joinToString(", ") { ".$it" }
}
JBPopupFactory.getInstance()
.createHtmlTextBalloonBuilder(
text, MessageType.INFO, null
)
.setFadeoutTime(2500)
.createBalloon()
.show(
RelativePoint.getSouthEastOf(statusBar.component),
Balloon.Position.above
)
}