|Stuck on creating a representation [message #1228956]
||Wed, 08 January 2014 07:17
| Wilhelm Pflüger
Registered: January 2014
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
| Alex Lagarde
Registered: May 2010
first of all, thanks for the great feedback :)
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
> 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
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
- 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),
Powered by FUDForum
. Page generated in 0.14693 seconds