Hello Entities
Entities example
If you run Modelix and point your browser to http://localhost:33333/ you will see a list of all modules in the current MPS repo (not in the model server database). You can then click through to a particular node, for example
de.itemis.mps.editor.collapsible
de.itemis.mps.editor.collapsible.structure
CellModel_Collapsible
You will then see the SVG-based editor that “transfers” the MPS default editor to the browser. This is the current default behavior or modelix if you do not define a custom editor. It is readonly, because the model is readonly in MPS. If you navigate to a node that is “in the project”, such as org.modelix.model.runtimelang/org.modelix.model.runtimelang.structure/UsedModule
, you will be able to edit the code in the SVG-based editor. If you navigate to the same node in MPS natively you will see the change you made in the browser.
http://localhost:33333/nodeAsHtml?nodeRef=MOQBcjpmMWNjOTZmZS1kNmVmLTRhNTgtYjYwNy0xYjJlNGQwMmUxZGUob3JnLm1vZGVsaXgubW9kZWwucnVudGltZWxhbmcuc3RydWN0dXJlKS81Mjc2NzU1MjQ1OTQzNDM0OTc4
This sample showcases the situation where you define a custom editor for your language.
org.modelix
project in the mps
folder of the repo to make sure the web server runssamples/entities
folder in a second MPS windowEntities example