I have a FacetTypeFrameworkSupportProvider implementation and i would like to generate some classes when the facet is created.
So, i overrided the onFacetCreated method and implemented the generation logic there. Everything inside a StartupManager.runWhenProjectIsInitialized block.
For creating packages i'm using PackageUtil.findOrCreateDirectoryForPackage.
This fails, as a dialog shows up saying:
"No Source Roots configured for module xxx. Please use Settings | Paths to configure roots"
and then the project settings window shows up.
Any idea how i can do this ?