Is it possible to remove a header from my custom tool window?

Answered

My plugin is intended to be always floating or in window mode, but can I enforce that? Also, I don't need a header in the plugin - can it be removed? Apart from that, the plugin name is duplicated two times. Can I leave it only in one place, ideally at the top and without the project name? 

 

0
3 comments

You can use com.intellij.openapi.wm.ToolWindow#setType.

The UI of toolwindow chrome cannot be customized.

0

Hello Yann Cebron ,

Thank you for your answer! Could you please clarify if it is possible to achieve a similar UI as it is for the commit dialog for example, probably with other instrumentation different from ToolWindow, but do not have anything at the top of the window except of the title? My intention is to invoke such a window when my action is triggered.

0

Sorry for long delay. This dialog is not a toolwindow, but a regular dialog (https://plugins.jetbrains.com/docs/intellij/dialog-wrapper.html). They don't have anything in common and it's not possible to “fake” anything.

0

Please sign in to leave a comment.