Accesing the "Problem"-Tool Window
Answered
Hello!
I'm writing a plugin witch conducts different code analysis and displays them at the bottom of the IDE in an extra Tool Window (next to "8: Services", and "6: Problems").
Now i've been asking myself is it even necessary to build my own Tool Window or is there a way to "access" the already existing "6: Problems"-Tool Window and add my findings to the corresponding Source-File already listed there?
Thanks for your help!
Please sign in to leave a comment.
Highlightings from editor should automatically appear in Problems tool window already. Did you check? I assume you're using inspections for highlighting? What IDE version are you using?
Thanks for your reply!
I didn't look at it that way. I thought the Highlights might appear if I add it to the Problems tool window, not the other way around.
As far as I understood I'm not using the inspections. My plugins goal is to get informations from external created result files, combine their errors and warning, sort them and display them in my own created tool window as a tree.
My next step was, if I got additional errors from the result files that aren't already in the problems tool window, to add them there under the corresponding source file.
Do you have some kind of documentation for adding custom highlights to the editor?
I'm working on Intellij Ultimate 2020.2 and I'm completely new in creating Intellij Plugins.
If you run an external tool in background "live", consider External Annotator https://plugins.jetbrains.com/docs/intellij/syntax-highlighting-and-error-highlighting.html#external-tool
Alternatively, https://plugins.jetbrains.com/docs/intellij/code-inspections-and-intentions.html Inspections might fit your use case.