Matthew
Matthew

Reputation: 23

Jetbrains MPS Run Invokes CLI Tool

I've created a DSL in Jetbrains MPS that generates a text config file (using textgen) which is used by another application. I would like to allow users to be able to "Run" each file using the right-click menu from the Logical View. Is this possible with MPS? From the tutorials/documentation, I see how this works if the DSL builds a JAR (as demo'd in the Kajak sample) but I haven't found (or didn't understand) how this could work in other scenarios.

Thanks in advance.

Upvotes: 1

Views: 27

Answers (1)

sigma
sigma

Reputation: 2953

There are various approaches you could take. The first that comes to mind is a run configuration. It's probably the easiest option and has automatic integration with the IDE, being available from the context menu and "Run" toolbar.

Otherwise, custom additions to almost any part of the IDE can be provided in plugins, though this is more involved and not always documented as well.

Upvotes: 0

Related Questions