How to change the Pinned mode of Maven panel

Hi

I'm developing plugin for IntelliJ and want to know how can I change the Pinned mode of the maven pannel or any other pannel in idea programatically.

Screen Shot 2014-04-23 at 11.28.42 AM.png

2 comments

com.intellij.openapi.wm.ToolWindow#setAutoHide

see http://confluence.jetbrains.com/display/IDEADEV/Creation+of+Tool+Windows for basic tutorial about Toolwindows

0

Thanks Yann for help
i manage to do it by the follwoing code

     ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(myProject);
     ToolWindow mavenToolWindow = toolWindowManager.getToolWindow("Maven Projects");
     mavenToolWindow.setAutoHide(true);

0

Please sign in to leave a comment.