eclipse-gemoc / gemoc-studio-execution-moccml

gemoc-studio-execution-moccml
Eclipse Public License 1.0
1 stars 8 forks source link

ModelStateHelper doesn't support RTD distributed in several emf resources #59

Open dvojtise opened 3 years ago

dvojtise commented 3 years ago

Currently, when looking for RTD to save, the generated ModelStateHelper searches only in the current root model element contents.

(cf. https://github.com/eclipse/gemoc-studio-execution-moccml/blob/945a7f37aa1575494e8e2de636030320f60fe6f1/examples/moccmlTFSM/language_workbench/org.eclipse.gemoc.example.moccml.tfsm/xdsml-java-gen/oncurrenttfsm/xdsml/api/impl/OncurrentTFSMModelStateHelper.java#L47 )

In the case of complex models split into several resources, the ModelStateHelper will ignore RTD that not directly contained by this root model element.

I suggest to use a crossreferencer in order to look for all resources used by the model.