Adding a banner to a window - com.intellij.openapi.ui.Banner is package-private

Answered

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?

 

1 comment
Comment actions Permalink

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.

0

Please sign in to leave a comment.