I want to add icon to IDEA status bar (writing plugin) but I faced several problems.
- how to get event when main window becomes visible, just after IDEA start? This is necessary to get reference to the main IDEA window and its status bar. I assume that no project is open. I cannot do that in +initComponent +of the +ApplicationComponent +class as the IDEA window is not yet visible there. Till now I'm using some workaround with timer which is of course ugly solution.
- when opening project the status bar is 'reloaded' and Icon added before project was open dissappears. How to avoid that? Is there a way to put something to the status bar permanently? I use WindowManager.getInstance().getAllFrames().getStatusBar in Application Component and WindowManager.getInstance().getStatusBar(project) in project component.