How do I detect when the tool window is activated

Hi there. :-)

I'm looking at tool window plugin that has a text area associated with it. When the tool window is visible I need to set the carat position in the text area.

How do I go about detecting that the tool window is now showing so I can set the cursor position?

Thanks.

Please sign in to leave a comment.