Beginner-Unable to show Viewpoint in Viewpoints Selection [message #1489607] |
Thu, 27 November 2014 14:17 |
jack reacher Messages: 5 Registered: May 2013 |
Junior Member |
|
|
Hi all,
I am new to Sirius. I tried to create a new model designer from scratch but to no avail. Here is what I did.
-Downloaded Eclipse modeling for Luna.
-Installed "Sirius Specification Environment" from Luna update site.
-Created a blank workspace
-Created a new "Ecore Modeling Project" called "test.mymodel" and in "Design" Viewpoint draw a model called "mymodel". Mymodel has 3 classes "Model", "Entity" and "Field". Each one has a "name" attribute which is EString. Model has Entities and Entities have Fields. At this point I have mymodel.ecore and mymodel.genmodel.
-Created a new "Viewpoint Specification Project" called "test.designer" with "mymodel.odesign" file.
-Created a new "Viewpoint" under mymodel with id "My Viewpoint" and "mymodel" file extension.
-Created a new "Diagram Description" under "My Viewpoint" with id "My Diagram". At this point I couldn't see any of my ecore classes under "Domain Class". So I closed and re-opened eclipse.
-I could see "mymodel.Model" with auto-completion and assigned "mymodel.Model" to "Domain Class" field of "My Diagram" diagram description.
-Created a blank "Modeling Project" named "test.mymodel.testing" and I right clicked to project and selected "Viewpoint Selection" but Viewpoint Selection was empty.
Now at this point shouldn't I see the newly created "My Viewpoint"?
Thanks in advance for any help.
Edit: Typo
[Updated on: Thu, 27 November 2014 14:18] Report message to a moderator
|
|
|
Re: Beginner-Unable to show Viewpoint in Viewpoints Selection [message #1490939 is a reply to message #1489607] |
Fri, 28 November 2014 15:20 |
|
On 11/27/2014 03:17 PM, jack reacher wrote:
> Hi all,
Hi,
Comment below
>
> I am new to Sirius. I tried to create a new model designer from scratch
> but to no avail. Here is what I did.
>
> -Downloaded Eclipse modeling for Luna.
> -Installed "Sirius Specification Environment" from Luna update site.
>
> -Created a blank workspace
>
> -Created a new "Ecore Modeling Project" called "test.mymodel" and in
> "Design" Viewpoint draw a model called "mymodel". Mymodel has 3 classes
> "Model", "Entity" and "Field". Each one has a "name" attribute which is
> EString. Mode has Entities and Entities have Fields. At this point I
> have mymodel.ecore and mymodel.genmodel.
>
> -Created a new "Viewpoint Specification Project" called "test.designer"
> with "mymodel.odesign" file.
>
> -Created a new "Viewpoint" under mymodel with id "My Viewpoint" and
> "mymodel" file extension.
>
> -Created a new "Diagram Description" under "My Viewpoint" with id "My
> Diagram". At this point I couldn't see any of my ecore classes under
> "Domain Class". So I closed and re-opened eclipse.
You have to first generate your meta-model ("Entity" Field" etc.) and
deploy it within your environment. Your model is currently a simple
model based on ecore, Diagram Descriptions and all other mappings like
container mappings, node mappings are defined over a meta-model. You
will express that an Entity, for instance, is represented by a
container. Each entity instances will next be visible as a container in
your diagram.
I suggest you to take a look on this tutorial:
http://eclipse.org/sirius/getstarted.html
>
> -I could see "mymodel.Model" with auto-completion and assigned
> "mymodel.Model" to "Domain Class" field of "My Diagram" diagram
> description.
>
> -Created a blank "Modeling Project" named "test.mymodel.testing" and I
> right clicked to project and selected "Viewpoint Selection" but
> Viewpoint Selection was empty.
> Now at this point shouldn't I see the newly created "My Viewpoint"?
>
> Thanks in advance for any help.
>
--
Florian - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.02870 seconds