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:

image

Selecting the classes and applying the wizard:

image

The ECore metamodel after the wizard has executed:

image

About these ads
This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Model Refactoring in EMF editors

  1. 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”.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s