Naming a Temporary Model

Hi Everyone,


I have a temporary model constructed using jetbrains.mps.smodel.tempmodel (Solution). I have to show this model in a UI, this model name is somewhat not meaningful and i have to customize it, The problem is that I am unable to name/rename the model as it is restricted inside the code. Attached code is responsible for setting the Model Name.

Is there any Hack to rename/name this model ?


Any leads would be of great Help :)


Thanks in Advance,

Aswin Sugumaran

1 comment

Why do you need to use TempModel? Just create your own implementation (subclass EditableModelDescriptor or RegularModelDescriptor depending on your needs). For simple scenarios, TrivialModelDescriptor might come handy.


Please sign in to leave a comment.