IDEA 4.0 application window focus/blur

Hello.

Is there any way besides messing with AWT event listeners to determine when IDEA main project frame(s) get / lose focus. I'm developing a simple plugin to record when and how long i've been working on different projects and both API documentation and forums haven't turned up anything simple or even usable.

I know there are events for that since IDEA saves project files and settings on blur and reloads changed files on focus, but they seem to be part of obfuscated API.

Has anybody solved this problem?

Please sign in to leave a comment.