Skip to main content


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 12:17 Go to next message
Wilhelm Pflüger is currently offline Wilhelm PflügerFriend
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 15:08 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
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
Re: Stuck on creating a representation [message #1385434 is a reply to message #1229026] Fri, 06 June 2014 12:26 Go to previous messageGo to next message
Ignacio Arechaga Fernandez is currently offline Ignacio Arechaga FernandezFriend
Messages: 14
Registered: May 2014
Location: Madrid
Junior Member
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),
Alex


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?

Many thanks
Re: Stuck on creating a representation [message #1385444 is a reply to message #1385434] Fri, 06 June 2014 13:14 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi,

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),
>> Alex
>
>
> 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 [1] (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

Regards,


Maxime

[1]
https://www.eclipse.org/sirius/doc/specifier/general/Specifying_Viewpoints.html#vsp


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Bad context after a Selection Wizard Description
Next Topic:Container with fixed freeform presentation
Goto Forum:
  


Current Time: Fri Apr 19 21:18:37 GMT 2024

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

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

Back to the top