How To Make ToolWindow?

Wondering if anyone can point me to a good resource or give me tips on creating a ToolWindow.

I want a tool window similar to the Run tool window. I want to have icon buttons, have a console window just like the one that is there, with highlighting etc. Or one like the messages console window where build errors are highlighted?

Thanks
Mike

3 comments
Comment actions Permalink

Hi Mike,

start with looking at ToolWindowManager. It is quite good documented.
The component to display in your new tool window you have to implement yourself.

Regards,
Dan

0
Comment actions Permalink

What I would like to do is reuse some of the existing ones if I can. I notice most window like the ant, run have a toolbar, is there a standard way of doing this? Also the run or messages window, I would like to reuse their component so that I don't have to write the highlighting stuff. My window is to display the output of an ant like build, so something like the ant output window? Can I reuse these components? Or extend them some how?

Thanks
Mike

0
Comment actions Permalink

Hello Mike,

What I would like to do is reuse some of the existing ones if I can.
I notice most window like the ant, run have a toolbar, is there a
standard way of doing this? Also the run or messages window, I would
like to reuse their component so that I don't have to write the
highlighting stuff. My window is to display the output of an ant like
build, so something like the ant output window? Can I reuse these
components? Or extend them some how?


The toolbar can be created using ActionManager.createActionToolbar(). The
console window can be created using TextConsoleBuilderFactory.getInstance().createBuilder(project).getConsole().

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.