Open new tab with concept in intention Follow
Hi MPS Team,
just a simple question i did not found in the userguid..
I have a concept "Command" which is defined as root concept. I added an Intention "CreateCommand" to my other concepts, in order to create commands on the fly by ALT-Enter.
It would be very nice, if i can open the command in a tab, after creating it.. how can i achieve that? I guess editorContext is the solution, but i did not find an apropriate method.
editorContext.selectNode(myCommand) did not do the job...
Best,
Dan
just a simple question i did not found in the userguid..
I have a concept "Command" which is defined as root concept. I added an Intention "CreateCommand" to my other concepts, in order to create commands on the fly by ALT-Enter.
It would be very nice, if i can open the command in a tab, after creating it.. how can i achieve that? I guess editorContext is the solution, but i did not find an apropriate method.
editorContext.selectNode(myCommand) did not do the job...
Best,
Dan
Please sign in to leave a comment.
Regards,
Mihail
Suppose it's done like
or Please see how it's done in your version of MPS in EditNode/CreateRootNode actions.
Regards,
Mihail
thanks for your answers - long time ago we met in cambridge :)
i have not project, nor a operationContext in "intentions" .. only editor and node itself ...
Dan
There's no problem - editorContext.getOperationContext().getProject() - you can get both.
Since 2.5 it's an analogue of MPS Project since a model can have only one module.
I think, by 3.5 or 4.0 we'll have per-project repositories and we'll get rid of operation context.
Just FYI