Jump to content
Vincent Parrett

Open Tools API - Project load/close notification

Recommended Posts

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×