Refactorings changed - difficult to follow user guide Follow
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
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
Please sign in to leave a comment.
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.
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.
Just press enter on <update> placeholder to create it.