Vincent Parrett 750 Posted December 18, 2019 Hi All Any Open Tools api experts here? I'm working on an ide expert that needs to be notified when a project is opened and closed. I have something working IOTAProjectFileStorageNotifier, however when project groups are opened I can't tell because the ProjectLoaded method is never called for it. Is there a better way? Ideally I'd like to be notified before a project/group is loaded (I just need the filename). thx Share this post Link to post
Uwe Raabe 2057 Posted December 18, 2019 You should try IOTAIDENotifier registered with IOTAServices. Then in FileNotification check for NotifyCode = ofnFileOpening. This will be called for all files before they are opened, so you need to filter by extension. Share this post Link to post
Uwe Raabe 2057 Posted December 18, 2019 BTW, may need to keep your IOTAProjectFileStorageNotifier implementation, because FileNotification is not fired during a file reload triggered by an external change (f.i. initiated by a VCS action). Share this post Link to post
Vincent Parrett 750 Posted December 18, 2019 Thanks @Uwe Raabe I'll take a look at that tomorrow. Share this post Link to post
Vincent Parrett 750 Posted December 19, 2019 Thanks @Uwe Raabe - IOTAIDENotifier was exactly I needed - first ever dpm restore on project load Still plenty to do but the basics are working 1 Share this post Link to post