Using mps file-per-root in intellij

Hi,

we are trying to use mps as intellij plugin, and we need to create a file per root model. Inside mps we can do this, but inside intellij We don't find the option. Can you help us please?

Thanks,
Raul Oliveira

2 comments
Official comment

Hi Raul,

First you need to add MPS Facet to java module, where you are going to create MPS concepts. In MPS Facet add model root and mark src folder as Models folder.

Now on java package under src folder use context menu: New -> Use MPS language here. Choose language to use. You can add more languages by opening model properties on this package (F4).

After that in context menu: New -> Root item will appear:

In appeared dialog you can choose one of root concepts:

Created root will appear under package:

 

Victor

Hi Victor,

It worked perfectly.

Thanks, 

Raul

0

Please sign in to leave a comment.