From: Omid on
Hi all,

I have a time tracking software that records the time I spend on each application. It recognizes the applications by their window caption. I'm used to have the MATLAB editor docked into the main window, so all my working time in MATLAB is reported under the name of "MATLAB 7.8.0 (2009a)". I'm thinking of a way to change the main window title to the name of the document I'm currently working on. Thanks to undocumentedmatlab.com now I know how to get the name of the active document and how to change the window title by accessing related java components. What I need is to code a callback function to be triggered whenever I switch to another document in the editor. However I didn't find the right callback property. Any idea?

Thanks,
Omid