Java Services??? [message #1848089] |
Fri, 19 November 2021 07:29  |
Eclipse User |
|
|
|
Hi everyone,
I have a problem to call java services from design file. I realised that when I add the model file (ecore model) to the dependencies of the Viewpoint Specification Project, I can not use any Services from Service Class. If I don't add the Ecore Model Project as a Dependency for the VSP, I can call services but in this time EObjects of the my Ecore Model can not be accessible from the service methods.
How can I solve this problem?
|
|
|
Re: Java Services??? [message #1848104 is a reply to message #1848089] |
Fri, 19 November 2021 17:17  |
Eclipse User |
|
|
|
Hi Hakan,
For the Java services call from the design files, I think my comment on this post [1] still stands :). I would recommand to download the sample "Basic Family" from the tutorial [2] so you can compare with your own projects.
In your Viewpoint Specification Project, you should indeed have a dependency toward the plugin with your metamodel. Then on your Viewpoint Specification Model (.odesign), the root element (Group) has a field "Model File Extension" that should be filled with the extension of your semantic model ("basicfamily" with that example). To be on the safe side, on your RepresentationDescription, you have a tab metamodel where you can load yours from the registry/workspace. This way you can be sure that your Viewpoint Specification Model is really synchronized with your metamodel. With that, your services should be accessible from the auto-completion in "interpreted expression" fields (the ones with a yellow background).
Best regards,
Steve
[1] https://www.eclipse.org/forums/index.php/t/1109308/
[2] https://www.eclipse.org/sirius/getstarted.html
|
|
|
Powered by
FUDForum. Page generated in 0.07585 seconds