You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following is more a question than an issue. I have the following situation: I have two meta-models, let's say "car.rb" and "wheel.rb". Now I would like to make within the "Car" ModelBuilder a reference to a Wheel created by the Wheel model builder. Is there any standard way? Note, in the Car metamodel I manually inserted the following:
You can pass only one package into the model builder (either the module corresponding to the package or an EPackage object).
The first thing I would try is to use only one single metamodel. A model normally is an instance of one metamodel not of two metamodels. So I would put your two partial metamodels into two subpackages of one overall metamodel.
Note that you can use Ruby's open classes/modules feature to still split the metamodels into two files if you need that: Create the toplevel package in one file and add one subpackage, then open it in the other file and add the other subpackage.
If that's not possible you could try a trick: Create a new EPackage object and add the EPackage objects of your two metamodels as child packages. Then pass the toplevel EPackage object to the metamodel builder.
Thanks for the help. Option a) seems to work partially. The problem which remains (I guess due to my lack of Ruby knowledge) is how to reference the "Continental" wheel in the code below.
The following is more a question than an issue. I have the following situation: I have two meta-models, let's say "car.rb" and "wheel.rb". Now I would like to make within the "Car" ModelBuilder a reference to a Wheel created by the Wheel model builder. Is there any standard way? Note, in the Car metamodel I manually inserted the following:
The text was updated successfully, but these errors were encountered: