PHPStorm EAP 172.2273.9 getIdeFrame stopped working Follow
In my IntelliJ Code::Stats plugin, I am using this piece of code to get the status bar of a newly opened project window: https://github.com/code-stats/code-stats-intellij/blob/master/src/StatsCollector.java#L73-L74
It has worked fine so far, but in the latest EAP of PHPStorm (172.2273.9) the call getIdeFrame(project) returns null. Replacing getIdeFrame with just getFrame I also get null. I can run WindowManager.getInstance().getAllProjectFrames() and I get a list of frames where the opened window frame is, but when I open a new project in a new window, getAllProjectFrames() will still only contain that first frame.
Should I be getting the status bar of a window in a different way? I want to add my status bar item to all windows, current and future.
Please sign in to leave a comment.
I fixed this issue by listening for Window openings through WindowManager instead with this change: https://github.com/code-stats/code-stats-intellij/commit/89d4c77863f6f4779ecae6e4bfde7cb44c7a55db#diff-b788f07c950572711eb8544fea81ad25