I'm trying to create a plugin solution that creates a template project for the language that I am currently working on like the one in the screenshot below:
The structure of the project after creating it is shown in the logical view like this:
What I am trying to do is to add java_source_stubs as the Model Root that references the "./generated" sub-folder of the solution GeneratedJavaSources like the one in the screenshot below:
But the current status of the solution is:
I am implementing the "MPSProjectTemplate" interface to create the template solution. In the implementation of the "getTemplateFiller()" method I am creating the "GeneratedJavaSources" solution like
// create Solution for the generated sources
Solution genSourceSolution = NewModuleUtil.createSolution("GeneratedJavaSources", myNewSolutionSettings.getSolutionLocation(), project);
Is there a way to pre-configure the solution that is being created in the new project to first create the "./generated" sub-folder and then reference it as the javasource_stubs as the Model Root.