I've got a plug-in which creates a new project/module. I've implemented a custom ModuleType, ModuleBuilder & ModuleWizardStep which asks the user for some project settings. It all works - I can successfully create a new project.
Now, I've created a PersistentStateComponent for persisting the settings in the project files - and configured it at a <projectService> in the plugin.xml.
But, I'm not sure at what point in the ModuleBuilder process to call ServiceManager.getService() to get my PersistentStateComponent and persist the project settings from the wizard.
Any help or sample code is appreciated!