Engage in a Dialog with Papyrus
Christian W. Damus
The M6 milestone of the Luna release of Eclipse Papyrus introduces some rationalization in the dialogs presented by the Properties view for creation and editing of related model elements.
Previously, these dialogs were not "transactional": every discrete edit action in a dialog was applied immediately to the model. The dialog did not have a Cancel button because it did not track these edits to revert them, and after completion of a dialog, every change made in it was appended separately to the history in the Edit → Undo menu.
This is now all changed, as demonstrated in the brief video below:
So, now the dialogs still offer a live preview of changes, but without dirtying the editor until a dialog is completed (the top-most dialog, because, of course, they nest) and the expected semantics apply:
- the Cancel button is available and does what you would expect: revert all pending changes
- the Undo menu only gets a single undoable action that encompasses all changes made in the dialog (and nested dialogs launched from it)
For further information about the internals of the implementation of this feature, have a read through bug 402525. Download and install the latest nightly build to try it out for yourself!