|
Re: Metamodel/model evolution advice please [message #1063329 is a reply to message #1063209] |
Thu, 13 June 2013 00:46 |
|
Hi Julian,
To do this manually, you will most likely need to edit the XMI source of your models. Another option would be to use HUTN which is a bit more readable than XMI but migrating to a new version of the metamodel would also require you to manually edit the HUTN model files. Another, slightly more controversial, option might be to define your models programmatically using EOL. For example, to create an OO model with 10 classes you could use something like the following:
for (i in 1.to(10)) {
createClass("Class" + i);
}
operation createClass(name : String) {
var c : new Class;
c.name = name;
return c;
}
so that if you then have to rename Class->MyClass you can only change 1 line of EOL code instead of 10 instances of Class. Outside Epsilon, you could consider Edapt (http://www.eclipse.org/edapt/).
Regards,
Dimitris
|
|
|
Powered by
FUDForum. Page generated in 0.03471 seconds