|[Edapt] Model includes references [message #1567777]
||Fri, 16 January 2015 15:17
| Teun van de Berg
Registered: October 2014
I'm looking into co-evolution of models and hence am looking at Edapt. I'm able to reproduce the tutorial and hence perform model migrations for "standalone" models. My attempts to migrate models containing references to other models (more details below) have not been successful. Can anyone indicate if such a case is supported and how this can be achieved?
My setup is:
| someClass |
| 1...* dependency
| someOtherClass |
I have an instance of metaModel1 and an instance of metaModel2. If I attempt to execute a migration on an instance of metaModel1 I will get an error stating that no migrator could be found. The change I performed is renaming someOtherClass to newSomeOtherClass.
I've found the following post which appears to be related but involves packages rather than meta models: h t t ps://www.eclipse.org/forums/index.php/m/1414432/?srch=edapt+references#msg_1414432
[Updated on: Fri, 16 January 2015 15:18]
Report message to a moderator
|Re: [Edapt] Model includes references [message #1586130 is a reply to message #1580357]
||Mon, 26 January 2015 17:34
| Maximilian Koegel
Registered: July 2009
thank you for contacting us on these issues. It would be great if you
could open bugzillas, although I cannot promise at what point in time we
will provide fixes...;)
Contributions welcome, of course!
Am 23.01.2015 um 13:46 schrieb Teun van de Berg:
> Hi Maximilian,
> Thanks for your reply. I've managed to migrate models with references.
> I observed the following which might be useful feedback for you:
> It would be nice if the release dialog (dialog which is launched after
> pressing the release button) allows the user to step the version of more
> than one metamodel. The current popup allows the user to step the
> version of one metamodel. When dealing with two models based on two
> corresponding metamodels with references, both of the metamodels will
> need an increase in version numbering (when the change affects an
> element which is used in both models). Currently the popup will trigger
> the following error: "NamespacesL URIs not fully changed since last
> release" unless the versions are first increased outside this popup.
> The example code provided in the tutorial doesn't set the editor state
> to dirty when a model is migrated (but the result of the migration is
> not yet saved).
> It would be nice if the default launch configuration would allow the
> selection of more than one file at a time. I mean, adding more than one
> file to list of to be migrated files at once.
> Say model A is referenced by B1 and B2. If model B1 is migrated in an
> editor model A will also be migrated. Model B2 can now no longer be
> opened in the editor. When using the launch configuration and migration
> model A, B1 and B2 at the same time I do not run into any hierarchy issues.
> When dealing with more metamodel dependencies the release dialog will
> require all metamodels to step a version. This isn't necessary and can
> currently by avoided by creating the "releases" in the tree editor.
> Consider the following case. Metamodel A depends on metamodel B and
> metamodel C. If an entity defined in metamodel B is changed, which is
> used in metamodel A, metamodel A and B will need to be stepped to a new
> version. Metamodel C however can remain unaffected.
> Please let me know if you need more info or if you would like me to
> create feature requests.
> Kind regards,
Get professional Eclipse developer support:
Powered by FUDForum
. Page generated in 0.01342 seconds