|Re: Stuck on creating a representation [message #1229026 is a reply to message #1228956]
||Wed, 08 January 2014 15: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),
|Re: Stuck on creating a representation [message #1385444 is a reply to message #1385434]
||Fri, 06 June 2014 13:14
| Maxime Porhel
Registered: July 2009
Le 06/06/2014 14:26, Ignacio Arechaga Fernandez a écrit :
> Alex Lagarde wrote on Wed, 08 January 2014 16:08
>> 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),
> Once I've finish to set up the odesign with all the mappings, how can I
> export this in order to include it on my project as a new editor?
If you have created a Viewpoint Specification Project  (from the
corresponding wizard), it is a standard Eclipse plug-in, so you just
have to deploy it as any other plug-in.
If you have created a simple odesign (from the Viewpoint Specification
Model wizard), init a Viewpoint Specification Project, replace the
generated odesign by yours and then:
. update the path to your VSM in the generated Activator.start() method.
. update the component name and id in the plugin.xml (should be optional)
> Many thanks
Powered by FUDForum
. Page generated in 0.01880 seconds