Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Java Services???
Java Services??? [message #1848089] Fri, 19 November 2021 12:29 Go to next message
Hakan  Yüksek is currently offline Hakan YüksekFriend
Messages: 22
Registered: October 2021
Junior Member
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 22:17 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 570
Registered: May 2011
Senior Member
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 Monnier - Obeo Canada
Need training or professional services for Sirius?
Previous Topic:How to get the ELK compatibility in odesign editor for version 6.3.0 in Eclipse 2020-03
Next Topic:Difference SIRIUS and Obeo-Designer
Goto Forum:

Current Time: Sat Jun 10 01:22:13 GMT 2023

Powered by FUDForum. Page generated in 0.02025 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top