Detection of file open/close?

Sorry if this is a stupid question, but is there some way of detecting when
files are opened or closed?

I found the FileEditorManagerListener to detect when the selected file is
changed, but since files can be closed without selecting them (e.g.
middle-click on its tab), that doesn't quite do the trick.

Am i missing something really obvious? :)

thanks,

chris


0
2 comments
Avatar
Permanently deleted user

Chris I'm not sure yet, but did you look at that EditorFactoryListener
class?

r.

"Chris Bartley" <spam@feynman.org> wrote in message
news:aok2c3$g2k$1@is.intellij.net...

Sorry if this is a stupid question, but is there some way of detecting

when

files are opened or closed?

>

I found the FileEditorManagerListener to detect when the selected file is
changed, but since files can be closed without selecting them (e.g.
middle-click on its tab), that doesn't quite do the trick.

>

Am i missing something really obvious? :)

>

thanks,

>

chris

>
>


0
Avatar
Permanently deleted user

Ooo! No, i completely missed it! Gonna go try it right now...

thanks! :D

chris

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:aok443$iqi$1@is.intellij.net...

Chris I'm not sure yet, but did you look at that EditorFactoryListener
class?



0

Please sign in to leave a comment.