Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Sirius Tutorials(The latest and best tutorials for Sirius)
Sirius Tutorials [message #1776119] Sun, 12 November 2017 09:16 Go to next message
Tim Cook is currently offline Tim CookFriend
Messages: 10
Registered: June 2011
Junior Member
Ubuntu 17.04
Eclipse was installed using eclipse-modeling-oxygen-1a-linux-gtk-x86_64.tar.gz

For someone that is not an Eclipse expert.
What is the latest and best tutorial that actually matches what a new user would see?

For example when attempting this tutorial: https://wiki.eclipse.org/Sirius/Tutorials/StarterTutorial#Overview

Instead of this image from the tutorial: https://photos.app.goo.gl/GrVsrgfaMs6K50923


I see these:

https://photos.app.goo.gl/DUWhxfpXp6unf6612
https://photos.app.goo.gl/Y2Hy6353JLuAovJ43

So, what happened to the icons from the sample?

Why do I see the XMI instead of a graphical tree?



[Updated on: Sun, 12 November 2017 11:16]

Report message to a moderator

Re: Sirius Tutorials [message #1776148 is a reply to message #1776119] Mon, 13 November 2017 08:26 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 522
Registered: July 2009
Senior Member
Hi,
The Eclipse Modeling Package does not actually include enough of Sirius to follow the tutorials. It comes with the Ecore Tools modeler, which is based on Sirius, but the package only includes the minimum Sirius components which are needed for Ecore Tools to run. Critically, it does not include the specification environment, i.e. the parts needed to create your own modelers. We recommend Obeo Designer (https://www.obeodesigner.com/en/) as the easiest way to start with Sirius. It's from Obeo, but the Community Edition is entirely free and open source, and includes everything needed in a convenient package. It's very similar to the Eclipse Modeling Package, but we make sure it includes compatible versions of everything needed to create and run Sirius modelers.

Regards,


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Sirius Tutorials [message #1776154 is a reply to message #1776148] Mon, 13 November 2017 09:37 Go to previous messageGo to next message
Yash Khatri is currently offline Yash KhatriFriend
Messages: 31
Registered: October 2017
Member
Hi Tim,

To see example.basicfamily in the form of graphical model you need to have the basicfamily editor in the runtime target platform.
To do this:

1. Select file -> New -> Example -> Basic Family Metamodel Definition.

This will import 3 projects in the workspace.
1. org.eclipse.sirius.sample.basicfamily
2. org.eclipse.sirius.sample.basicfamily.edit
3. org.eclipse.sirius.sample.basicfamily.editor

Start a new eclipse environment. (Run as eclipse application)
This will load the metamodel and editor in the runtime target platform.

Now, open the example.basicfamily in "Basicfamily Model Editor" and you will see the graphical view.

Please note: the basicfamily.sample project that you created/imported should be in the new eclipse environment.

-Yash Khatri
Re: Sirius Tutorials [message #1776162 is a reply to message #1776154] Mon, 13 November 2017 10:21 Go to previous messageGo to next message
Tim Cook is currently offline Tim CookFriend
Messages: 10
Registered: June 2011
Junior Member
Thanks for the replies.

Using the Obeo Designer - Community edition 10.0.0
When I get to " (Run as eclipse application)" I get a new empty workbench/environment.

See: https://photos.app.goo.gl/iqHhGsjA9rBpwm8o2

This is assuming " (Run as eclipse application)" means right clicking on the
org.eclipse.sirius.sample.basicfamily package and running it as an Eclipse application?

Maybe this is where I do not understand the next steps since I am not an experienced Eclipse user?

RE-EDIT:

Okay, you do not see the other packages in the Model Explorer once you run the new environment DUH. Sorry I didn't understand the Eclipse process. In the New environment I loaded the example.basicfamily and I now understand that this IS the "Basicfamily Model Editor" it just doesn't say it anywhere. :-)


Thanks for the patience,
Tim

Yash Khatri wrote on Mon, 13 November 2017 04:37
Hi Tim,

To see example.basicfamily in the form of graphical model you need to have the basicfamily editor in the runtime target platform.
To do this:

1. Select file -> New -> Example -> Basic Family Metamodel Definition.

This will import 3 projects in the workspace.
1. org.eclipse.sirius.sample.basicfamily
2. org.eclipse.sirius.sample.basicfamily.edit
3. org.eclipse.sirius.sample.basicfamily.editor

Start a new eclipse environment. (Run as eclipse application)
This will load the metamodel and editor in the runtime target platform.

Now, open the example.basicfamily in "Basicfamily Model Editor" and you will see the graphical view.

Please note: the basicfamily.sample project that you created/imported should be in the new eclipse environment.

-Yash Khatri

[Updated on: Mon, 13 November 2017 10:27]

Report message to a moderator

Re: Sirius Tutorials [message #1776172 is a reply to message #1776119] Mon, 13 November 2017 12:19 Go to previous message
Tim Cook is currently offline Tim CookFriend
Messages: 10
Registered: June 2011
Junior Member
Everything was successful now; up to the "Test the diagram" step.

At "When the diagram opens it displays all the instances of Man contained in the sample model. " mine opened a blank diagram.

See: https://photos.app.goo.gl/9nX7UlABOFne5h8n1

The specifications editor looks like this: https://photos.app.goo.gl/p7LfoC33R1Ve2kFK2

Any idea what went wrong?

Thanks.

BTW: I am taking notes to provide suggestions later to improve the tutorial if that is something you would like.

[Updated on: Mon, 13 November 2017 23:17]

Report message to a moderator

Previous Topic:Container Drop
Next Topic:Dynamically hide/show property
Goto Forum:
  


Current Time: Wed Apr 01 22:22:02 GMT 2020

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

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

Back to the top