Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Stuck on creating a representation(Can't create a representation because of missing 'semantic ressource')
Stuck on creating a representation [message #1228956] Wed, 08 January 2014 07:17 Go to next message
Wilhelm Pflüger is currently offline Wilhelm Pflüger
Messages: 2
Registered: January 2014
Junior Member
I love the work you have done with Sirius/Obeo Designer. But I have problems to transfer the examples to my own simple project. It would be nice to have an example like basicfamily that starts from an empty workspace...

Up to now I'm able to create an ecore model and to create a viewpoint specification that validates OK. But then I'm stuck at the step of generating a model using my specified viewpoint.

In the example videos you provided for Sirius (e.g. Sirius By Example: ... www.youtube.com/watch?v=fi4SVKlLs5E ) there is always a file with model information created already (copied from somewhere).
I want to build a simple example from scratch but I can not create a reprensentation for a view if I don't have a 'semantic ressource'.

How do I create one?
Re: Stuck on creating a representation [message #1229026 is a reply to message #1228956] Wed, 08 January 2014 10:08 Go to previous message
Alex Lagarde is currently offline Alex Lagarde
Messages: 162
Registered: May 2010
Senior Member

Hi Wilhelm,

first of all, thanks for the great feedback :)

Answers inline:

Le 08/01/2014 15:55, Wilhelm Pflüger a écrit :
> I love the work you have done with Sirius/Obeo Designer. But I have
> problems to transfer the examples to my own simple project. It would be
> nice to have an example like basicfamily that starts from an empty
> workspace...
>
> Up to now I'm able to create an ecore model and to create a viewpoint
> specification that validates OK. But then I'm stuck at the step of
> generating a model using my specified viewpoint.

Ok so you have done working as a "Specifier", i.e. the person which
defines the metamodel (ecore model) and the Representation Specification.

Now you will endorse the end-user role:
- Create an instance of your metamodel. To do so, you have 2 ways:
1. Open your ecore file, select your root and click on "Create dynamic
instance"
2. Generate the model, .edit and .editor plugins from your ecore's
genmodel, launch a new runtime and create an instance of your metamodel
using the generated editors (these are basic EMF operations, you will
find plenty of tutorial such as this great one
http://www.vogella.com/tutorials/EclipseEMF/article.html#emfeditor)
- Ok, now you have a semantic resource (i.e. a model instance of your
metamodel), the only thing missing is to create a "Modeling Project"
(File > New > Sirius > Modeling Project). In this project, paste your
semantic model. You will see the Viewpoint you have defined in your VSM
available, and once you have selected it (right-click > Viewpoint
Selection) you will be able to create the representations you have defined.

Hoping this answers your question and does not go to fast (please let me
know if this is the case),
Alex
Previous Topic:How to debug Model Operations
Next Topic:Visibility of variabe
Goto Forum:
  


Current Time: Wed Apr 16 16:14:06 EDT 2014

Powered by FUDForum. Page generated in 0.10900 seconds