Getting notified of file navigation events when using Hadi's no tabs method

I am using the CodeGlance plugin along with Hadi Hariri's no tabs method of navigation. CodeGlance is a FIleEditorManagerListener and does it's magic when fileOpened and fileClosed is called. The problem is that fileClosed is not called when I navigate from one file to another so CodeGlance is leaking memory (on the order of a couple of hundred MB in a 30-60 minute session).

Is there an alternative event that I could listen for to know when I navigate from one file to another?




- try available listener implementations, you may find one that works just as you need it.