I need ToolWindow to trigger show/hide events
已回答
I need to get componentShown and componentHidden event
for some reason it doesn't work. It only works actually the first time it is created.
this.toolWindow.getComponent().addComponentListener ( new ComponentAdapter ()
{
public void componentShown ( ComponentEvent e )
{
System.out.println ( "Component shown" );
}
public void componentHidden ( ComponentEvent e )
{
System.out.println ( "Component hidden" );
}
} );
请先登录再写评论。
Try registering the following topic:
It provides toolWindowShown and stateChanged methods that will help you distinguish the state of your ToolWindow.