Add Action to Tools menu
I tried to add an Action to the Tools menu. In the MPS 3.0 documentation there is a reference to Tutorial: how to add an Action to the Jetbrains MetaProgramming-System. I followed all the steps in the tutorial (slightly adapted because I use MPS 3.0, the tutorial is 2.0)., Everything goes fine, it seems simple enough. However \the new action never shows up in the Tools menu. Is the tutorial out of date? Or do I need to do something additional to get the action to show up?
Please sign in to leave a comment.
Open the concept and click with the right button on its name. Select "Find Usages Settings..." and check in the dialog "Concept Instances" and "Global". You can disable all other checkboxes.
In the Usages results you can select now one action which is similar to yours.
Could it be something in the project / solution / language setup ?
There is no "new" for creating such a StandalonePluginDescriptor, I had to copy it from another project, because I could not find how to create it otherwise.
In the MPS project where the above CopyNodeReference was defined such a StandalonePluginDescriptior does exists indeed. However because it is a large project with a large folder structure it was unclear that this has anything to do with the problem.
Thanks,
Jos
But after setting up your language imports properly, you should also be able to add a new StandalonePluginDescriptor from the context menu. Perhaps you should run the Optimize Imports procedure for your project.
TL;DR
As fabma suggested, creating a StandalonePluginDescriptor in the solution model and setting the solution kind to other did the trick for me!
Thx very much!
While creating new solution from project, try to create "New Plugin Solution". This by default will have the StandalonePluginDescriptor