Model Refactoring in EMF editors
In this post we demonstrated how EWL from the Epsilon GMT component can be used to automate model refactoring (in-place model transformation in general) in GMF-based editors. Since version 1.3.2, the same wizards can be executed in EMF tree-based editors as well. The following screenshots demonstrate the application of the CreateAssociationClassCase1 wizard (originally described by Ed Merks here) in the default ECore tree-based editor.
The original ECore metamodel:
Selecting the classes and applying the wizard:
The ECore metamodel after the wizard has executed:
March 17, 2008 at 1:41 am
Cool!
March 18, 2008 at 4:43 pm
Thanks. A glitch I’ve found is that (unlike GMF) the EMF editors do not maintain the order of selection. For example, in the GMF editor when I select B and then A, the wizard title reads “Create association BALink” while in the EMF editor regardless of the user selection order, the selection returned by the tree viewer is always {A, B} and thus the title always reads “Create association ABLink”.