Refactorings changed - difficult to follow user guide

Hi MPS Team,

although changes in the refactoring language were documentated by vaclav at http://confluence.jetbrains.net/display/MPSD25/Refactoring

i can not follow the explanation. I tried to migrate one refactoring but i can not find jetbrains.mps.ide.actions.NodeRefactoring. What is a ui action? A plugin action? I also found no isApplicable clause to the action created ....

Can someone come up with a simple example? Or an example at baselang where i can see how things have to get done?


Dan
1 comment
I tried to migrate one refactoring but i can not find jetbrains.mps.ide.actions.NodeRefactoring.

Oops.. It's actually jetbrains.mps.ide.platform.actions.NodeRefactoring. You can open a model (by pressing Ctrl+Alt+Shitf+M and typing jetbrains.mps.ide.platform.actions) and you'll see this root (action group) there. I'll correct documentation right now. Thank you for pointing out.

What is a ui action? A plugin action?

Yes this is a simple action from plugin language. You can check Rename action from jetbrains.mps.ide.platform.actions.core model - this is an example of proper refactoring action registration.

I also found no isApplicable clause to the action created ...

Just press enter on <update> placeholder to create it.
0

Please sign in to leave a comment.