|
Re: Some rules work other don't [message #1760385 is a reply to message #1760384] |
Wed, 26 April 2017 14:39 |
Eclipse User |
|
|
|
If it is a parent EClass of some other subclasses (extends relationship), then you have to annotate your rule with @greedy to make sure that all items of its subtypes are also handled by the rule.
|
|
|
Re: Some rules work other don't [message #1760386 is a reply to message #1760385] |
Wed, 26 April 2017 14:44 |
Eclipse User |
|
|
|
At the second thought, I had a feeling that you also need to share the metamodel. For example, the following lines:
o.packages = s.libraries.equivalent();
o.userMessages = s.messageDetails.equivalent();
seems to me a bit wrong. I had the following feeling: These references like s.libraries are lists. And I am not sure equivalent() works with the lists.
|
|
|
|
|
|
Re: Some rules work other don't [message #1760616 is a reply to message #1760496] |
Fri, 28 April 2017 22:03 |
|
Hi Martin,
When I run the transformation both rules are executed ("transformLibrary" is printed to the console and a GPackage is create in the target model). It's a wild guess but is there any chance that your metamodels are registered multiple times e.g. through a plugin and through right-click->Register EPackages?
Cheers,
Dimitris
|
|
|
Powered by
FUDForum. Page generated in 0.03343 seconds