Is it possible to have a tool window show up as the result of clicking a menuItem/icon?

Hi everyone,

I've been going through this example:
http://confluence.jetbrains.com/display/IDEADEV/Creation+of+Tool+Windows

Using the method above, you seem to be registeromg another tool window and can only get it to show by  going through view > tool windows > clicking on your menuItem.

I'm wondering how to make a tool window appear as the result of clicking any arbitrary menuItem or icon?

Thanks!

3 comments
Comment actions Permalink

ToolWindow.activate()

0
Comment actions Permalink

Thanks Dmitry,

Just one more question though.. how do I make a tool window appear as a result of clicking the Editor tab? (see attached screen shot)

and then hide it when clicking the Text tab? (obviously by calling hide somewhere, but where)?



Attachment(s):
Question2.PNG
0
Comment actions Permalink

see com.intellij.openapi.fileEditor.FileEditorManagerListener#selectionChanged


0

Please sign in to leave a comment.