Adding a banner to a window - com.intellij.openapi.ui.Banner is package-private
已回答
The UI Guideline describes banners: https://jetbrains.github.io/ui/controls/banner/
I want to add such a banner to my tool window but com.intellij.openapi.ui.Banner is package-private for some reason. Is there a other common class to be used or is every developer expected to create it himself?
请先登录再写评论。
Hi Simon,
There is no common class for this case in the Platform code. You can take a look at an example here:
https://github.com/JetBrains/intellij-community/blob/master/platform/vcs-impl/src/com/intellij/vcs/commit/NonModalCommitPromoter.kt#L80
It is not inside of tool window, but I hope it helps.