Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » using model types in Services.java
using model types in Services.java [message #1760899] Thu, 04 May 2017 07:51 Go to next message
Cyril Osdoit is currently offline Cyril OsdoitFriend
Messages: 23
Registered: March 2017
Junior Member
I have a custom model that I installed in my Eclipe application as a plug-in, so I can create a diagram. Now I want to use a custom service on this diagram but I want to use some of my types like they use the "Person" class in https://wiki.eclipse.org/Sirius/Tutorials/AdvancedTutorial#Java_Services

The thing is that I don't know what I should import in my project to be able to do that.
Re: using model types in Services.java [message #1760931 is a reply to message #1760899] Thu, 04 May 2017 12:24 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,

You have to add the denpendency to the plugin of your metamodel in MANIFEST.MF of your project. Like it is done, for example, here [1] for the sample you speak about.
And it is also preferable to reference your metamodel in each representation of your VSM, odesign file, like it is done for example, here [2] for the sample you speak about. The metamodel can be set through the "Metamodels" tab of the properties view when you select a representation in the Viewpoint Specification Editor.

Regards,

Laurent

[1] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/tree/plugins/org.eclipse.sirius.samples.family/solutions/org.eclipse.sirius.sample.basicfamily.advanced.design/META-INF/MANIFEST.MF#n13
[2] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/tree/plugins/org.eclipse.sirius.samples.family/solutions/org.eclipse.sirius.sample.basicfamily.advanced.design/description/basicfamily.odesign#n5


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: using model types in Services.java [message #1760936 is a reply to message #1760931] Thu, 04 May 2017 12:49 Go to previous message
Cyril Osdoit is currently offline Cyril OsdoitFriend
Messages: 23
Registered: March 2017
Junior Member
It works thanks for the help
Previous Topic:Exception
Next Topic:Refer to another file from the model's folder
Goto Forum:
  


Current Time: Thu Apr 25 00:49:04 GMT 2024

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

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

Back to the top