| [news.eclipse.modeling.m2m] Re: [ATL] href in IN model |
That's a good idea but the problem is that instance.type.oclType() always returns MyMETAMODEL!EClass and it is correct because instance.type is a reference to EModelElement from Ecore.OK you transform ECORE 2 ECORE so you don't have a metamodel UML.
Another problem is that instance.type or instance.type.name should return something like UML!Class or UML!Generalization but in screen appears IN<notnamedyet>.Did you switch allowInterModelReferences on ? On Ecore Level UML.ecore#//Class is an EClass with name Class, instance.type.name should return "Class"
The only I think that I could do is to obtain the value of href ("UML.ecore#//Generalization") and compare as strings with UML!"uml::Class".name. Is it possible ?¿?If you don't have a metamodel called UML in your transformation, forget about UML!xxx if your M1 is Ecore you need to work with Ecore not UML.
greetings, urs.