Home » Eclipse Projects » Sirius » sirius tutorial or example based on acceleo created model
|
Re: sirius tutorial or example based on acceleo created model [message #1462488 is a reply to message #1462391] |
Wed, 05 November 2014 16:26 |
|
Le 05/11/2014 15:25, Joerg Buchberger a écrit :
> Hi.
Hi.
> Does anyone know of a sirius tutorial or example, that is based on a
> model setup using acceleo?
>
> I'm new to sirius, acceleo and emf/ecore. Now, I try to find a
> straightforward way of creating a model and corresponding sirius
> diagrams (both from scratch).
Acceleo is strictly for generating text (source code, documentation,
XML, whatever) from existing models.
When you define your metamodel using EMF, you can generate a basic
editor which can be used to create/view/edit instances of that model.
The generated editor is basic but functional to create small and simple
models.
If you want a more graphical and/or customized way to create/view/edit
your model instance, then Sirius (among other possibilities) comes into
play.
From the model instances you have created/edited (using whichever tool
you prefer), Acceleo can then be used to generate textual artifacts.
> And later, when instances of the model can be setup using the sirius
> diagrams,
> the intention is to generate xml files from the model instances - which
> is, why starting from Acceleo seemed to be a suitable approach.
As I said above, Acceleo takes existing models as its input, so it is
not a good starting point if you start from zero. However once you have
your model instances, it can be used to generate any kind of text files,
including of course XML.
--
Pierre-Charles David - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: sirius tutorial or example based on acceleo created model [message #1464372 is a reply to message #1462488] |
Fri, 07 November 2014 13:27 |
Joerg Buchberger Messages: 46 Registered: July 2009 |
Member |
|
|
Hi Pierre-Charles
thanks for your quick response. I followed your advice and setup a
model first.
FWIW, I setup an EMF project converting an xml schema and
converted that project to sirius modeling nature.
Next to the model I created a viewpoint spec model, that is bound
to the model and setup a simple representation with default
layer and some diagram elements in it.
However, I am starting to get lost: When I now open the projects
viewpoint selection, it is remaining empty. My viewpoint is not visible.
Where did I go wrong or miss out on something?
Note, that I followed the 4 minute tutorial the other day, which
was succesful - so the environment is functional.
Cheers
Jörg
Pierre-Charles David wrote on Wed, 05 November 2014 11:26
Acceleo is strictly for generating text (source code, documentation,
XML, whatever) from existing models.
When you define your metamodel using EMF, you can generate a basic
editor which can be used to create/view/edit instances of that model.
The generated editor is basic but functional to create small and simple
models.
If you want a more graphical and/or customized way to create/view/edit
your model instance, then Sirius (among other possibilities) comes into
play.
From the model instances you have created/edited (using whichever tool
you prefer), Acceleo can then be used to generate textual artifacts.
> And later, when instances of the model can be setup using the sirius
> diagrams,
> the intention is to generate xml files from the model instances - which
> is, why starting from Acceleo seemed to be a suitable approach.
As I said above, Acceleo takes existing models as its input, so it is
not a good starting point if you start from zero. However once you have
your model instances, it can be used to generate any kind of text files,
including of course XML.
[Updated on: Fri, 07 November 2014 14:38] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Apr 25 23:36:57 GMT 2024
Powered by FUDForum. Page generated in 0.03691 seconds
|