Use com.nomagic.magicdraw.core.project.ProjectsManager.addProjectListener(ProjectEventListener) to register com.nomagic.magicdraw.core.project.ProjectEventListener. The listener will be invoked on various project life-cycle related actions.
A recommendation is to register a listener in the com.nomagic.magicdraw.plugins.Plugin.init() method.
Save participant
Use com.nomagic.magicdraw.core.SaveParticipant to plugin into a save/commit operation.
Register it using com.nomagic.magicdraw.core.Application.addSaveParticipant(SaveParticipant).
Related pages