Child pages
  • What's new in MPS 2.5 M1

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • create action for refactoring
  • copy caption, create context parameters
  • add refactoring keystroke with the newly created action to KeymapChangesDeclaration
  • create ActionGroupDeclaration for refactoring that modifies jetbrains.mps.ide.actions.NodeRefactoring action group at default position
  • add isApplicable clause to the action created; usually it is just is applicable refactoring< >() call
  • add execute clause to the action created; all the parameter preparations that were in init of refactoring should be moved here; at the end it is necessary to execute refacoring with prepared parameters (with execute refactoring< >(); statement)
  • remove all parameter preparation from init of refactoring, they should be ready on entry to init; you can still validate parameters and return false if validation fails

Suppress Errors

It is possible to suppress errors in editor (and in model checker) now.

If node is instance of a concept which implements ISuppressErrors interface, then all errors in this node and it's children won't be shown. It is also possible to define 

Also if node has attribute of concept implementing ISuppressErrors, errors in such node will be suppressed too.