Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Sirius/Tutorials/PropertiesViewTutorial"

(Created page with "Test")
 
Line 1: Line 1:
Test
+
=Overview=
 +
 
 +
This tutorial explains how to create your first properties view with Sirius.
 +
 
 +
The instructions start from the result of the Sirius [[Sirius/Tutorials/4MinTutorial | Starter Tutorial]], a basic modeling tool which simply allows the user to graphically represent men and women of a family and to create new men.
 +
 
 +
[[File:Sirius_4mtuto_01.png]]
 +
 
 +
 
 +
The advanced modeling tool that you will create is based on the same simple Domain Model which describes basic concepts about families.
 +
 
 +
[[File:Sirius_4mtuto_02.png]]
 +
 
 +
 
 +
'''Note:''' The screenshots have been created with [http://www.obeodesigner.com Obeo Designer 8.1] (based on Sirius 3.1).
 +
 
 +
=Install the basic modeling tool=
 +
 
 +
If you have followed the [[Sirius/Tutorials/StarterTutorial | Starter Tutorial]] already, you are ready! Directly go to next section: [[#Start_extending_the_basic_modeling_tool |Start extending the basic modeling tool]].
 +
 
 +
If at any point in this document you are stuck, you can obtain a project with the complete, final result of this tutorial at [https://www.eclipse.org/sirius/doc/resources/getstarted/advanced-tutorial.zip this location].
 +
 
 +
Otherwise, start by following the instructions to install the sample Domain Model:
 +
* [[Sirius/Tutorials/StarterTutorial#Import_the_projects_containing_the_sample_Domain_Model | Import the projects containing the sample Domain Model]]
 +
* [[Sirius/Tutorials/StarterTutorial#Launch_a_new_runtime_from_your_Eclipse | Launch a new runtime from your Eclipse]]
 +
* [[Sirius/Tutorials/StarterTutorial#Select_the_Sirius_perspective | Select the Sirius perspective]]
 +
* [[Sirius/Tutorials/StarterTutorial#Import_a_sample_model | Import a sample model]]
 +
 
 +
 
 +
Now, you should have an Eclipse runtime (started from your first Eclipse) with a sample ''Family'' model installed in your workspace.
 +
 
 +
[[File:sirius_4mtuto_05-2.png]]
 +
 
 +
 
 +
Then, install the solution of the ''Starter Tutorial''. It is implemented by a ''Viewpoint Specification Project'' that you need to import into your workspace.
 +
 
 +
This project can be easily installed from the provided examples (menu '''File > New > Example...''' : select '''Basic Family Sample Modeler Definition''').
 +
 
 +
[[File:Sirius_tuto2_02-04.png]]
 +
 
 +
 
 +
Once the modeler imported in your workspace, activate the ''persons'' viewpoint by selecting the menu '''Viewpoint Selection'''.
 +
 
 +
[[File:sirius_4mtuto_27.png]]
 +
 
 +
 
 +
You must activate the ''persons'' viewpoint to be able to create the representations which are defined by this viewpoint.
 +
 
 +
[[File:sirius_4mtuto_28.png]]
 +
 
 +
 
 +
Then right-click on the sample model and select the menu '''New Representation / new Persons diagram'''.
 +
 
 +
[[File:sirius_4mtuto_29.png]]
 +
 
 +
 
 +
Sirius should create and open a diagram describing the men and women contained in the sample model.
 +
 
 +
[[File:sirius_4mtuto_01.png]]

Revision as of 10:51, 16 August 2016

Overview

This tutorial explains how to create your first properties view with Sirius.

The instructions start from the result of the Sirius Starter Tutorial, a basic modeling tool which simply allows the user to graphically represent men and women of a family and to create new men.

Sirius 4mtuto 01.png


The advanced modeling tool that you will create is based on the same simple Domain Model which describes basic concepts about families.

Sirius 4mtuto 02.png


Note: The screenshots have been created with Obeo Designer 8.1 (based on Sirius 3.1).

Install the basic modeling tool

If you have followed the Starter Tutorial already, you are ready! Directly go to next section: Start extending the basic modeling tool.

If at any point in this document you are stuck, you can obtain a project with the complete, final result of this tutorial at this location.

Otherwise, start by following the instructions to install the sample Domain Model:


Now, you should have an Eclipse runtime (started from your first Eclipse) with a sample Family model installed in your workspace.

Sirius 4mtuto 05-2.png


Then, install the solution of the Starter Tutorial. It is implemented by a Viewpoint Specification Project that you need to import into your workspace.

This project can be easily installed from the provided examples (menu File > New > Example... : select Basic Family Sample Modeler Definition).

Sirius tuto2 02-04.png


Once the modeler imported in your workspace, activate the persons viewpoint by selecting the menu Viewpoint Selection.

Sirius 4mtuto 27.png


You must activate the persons viewpoint to be able to create the representations which are defined by this viewpoint.

Sirius 4mtuto 28.png


Then right-click on the sample model and select the menu New Representation / new Persons diagram.

Sirius 4mtuto 29.png


Sirius should create and open a diagram describing the men and women contained in the sample model.

Sirius 4mtuto 01.png

Back to the top