Event for activation of ToolWindow

I'm creating a ToolWindow plugin and I can't seem to figure out how to respond to a user clicking on the plugin's name on the Tool Window Bar.

Such as when you click on the name "Structure" on the Tool Window Bar, there must be an event fired so that the structure window knows to load data for the current file.
Anyone know what that event is?

Also, if anyone knows of a way to show multiple icons on a single node in a Jtree, that would be very helpful. I don't know how to combine two Icons into one, which would fix it for me.

Thanks,

Greg

PS - The plugin I'm creating is similar to the Structure view, except that it allows you to see all of the methods in an object's hierarchy (exclusive of Object). I missed this "root minus one" view from VAJ. Once I get this problem sorted, I will do the inital release.

Please sign in to leave a comment.