Skip to main content

Notice: This Wiki is now read only and edits are no longer 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/UpdateSiteModelerTutorial"

(Created page with "=Overview= This tutorial explains how to create your first update site for the eclipse sirius modeler. In this tutorial we will show how to create an update site for the resu...")
 
(Replaced content with "This page has been moved to Update Site Tutorial")
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Overview=
+
This page has been moved to [[Sirius/Tutorials/UpdateSiteTutorial|Update Site Tutorial]]
 
+
This tutorial explains how to create your first update site for the eclipse sirius modeler.
+
In this tutorial we will show how to create an update site for the result of the basic tutorial : a modeling tool which simply allows the user to graphically represent family.
+
 
+
[[File:Sirius_tuto5_01.png]]
+
 
+
=Get the modeling tool in your environment=
+
 
+
If you just followed the Sirius [[Sirius/Tutorials/4MinTutorial | Starter Tutorial]]lready, you are ready! Directly go to next section:[[Sirius/Tutorials/UpdateSiteModelerTutorial#Start_creating_the_update_site | Start creating the update site]]
+
 
+
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]]
+
 
+
Now, you should have an Eclipse runtime (started from your first Eclipse)
+
 
+
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_tuto5_02.png]]
+
 
+
By default the icons defined in the modeler are not exported in the update site : you have do update the project definition in order to get these icons in the final modeler.
+
 
+
Open Manifest.mf in META-INF directory of org.eclipse.sirius.sample.design
+
In tab build check icons.
+
 
+
[[File:Sirius_tuto5_03.png]]
+
 
+
=Start creating the update site=
+
 
+
==Create a Feature Project==
+
The first step consists in creating a feature project containning all the features necessary to create the update site.
+
'''Right click''' in the '''Model Explorer''' view and select '''Other...'''
+
 
+
[[File:Sirius_tuto5_04.png]]
+
 
+
Select Feature Project
+
 
+
[[File:Sirius_tuto5_05.png]]
+
 
+
Then set the properties' feature
+
* '''Project name''': <code>org.eclipse.sirius.sample.basicfamily.feature</code>
+
* '''Feature Name''': <code>org.eclipse.sirius.sample.basicfamily</code>
+
* '''Feature Vendor''': <code>Your name company</code>
+
 
+
[[File:Sirius_tuto5_06.png]]
+
 
+
Then click on Next button and add all project to references in the feature
+
 
+
* '''org.eclipse.sirius.sample.basicfamily'''
+
* '''org.eclipse.sirius.sample.basicfamily.design'''
+
* '''org.eclipse.sirius.sample.basicfamily.edit'''
+
* '''org.eclipse.sirius.sample.basicfamily.editor'''
+
 
+
[[File:Sirius_tuto5_07.png]]
+
 
+
=Create and export the Update Site project=
+
 
+
'''Right click''' in the '''Model Explorer''' view and select '''Other…'''
+
Select Update Site Project
+
 
+
[[File:Sirius_tuto5_08.png]]
+
 
+
Then set the project name : <code>org.eclipse.sirius.sample.basicfamily.update</code>
+
 
+
[[File:Sirius_tuto5_09.png]]
+
 
+
Add a new Category and named it Basic Famly (id : <code>BasicFamily</code>)
+
 
+
[[File:Sirius_tuto5_10.png]]
+
 
+
Add the feature '''org.eclipse.sirius.sample.basicfamily.feature''' to the category. This action allows to have a category during the installation of the plugin
+
 
+
[[File:Sirius_tuto5_11.png]]
+
 
+
Launch the Update site creation with '''Build''' button to obtain this result
+
 
+
[[File:Sirius_tuto5_12.png]]
+
 
+
Now it's necessary to export the update site to an archive.
+
 
+
Select
+
* repository '''features'''
+
* repository '''plugins'''
+
* file '''artifcats.jar'''
+
* file '''content.jar'''
+
* file '''site.xml'''
+
 
+
Right click on selection and click on '''Export'''
+
 
+
[[File:Sirius_tuto5_13.png]]
+
 
+
Select '''Archive File''' in '''General''' section
+
 
+
[[File:Sirius_tuto5_14.png]]
+
 
+
'''Warning''' : The ''.project'' file should not be selected.
+
Fill the "''To archive file''" field for choose archive location.
+
 
+
[[File:Sirius_tuto5_15.png]]
+
 
+
Click on ''Finish'' button. The archive is exported to the path defined in "''To archive file''"
+
 
+
=Test the Update Site=
+
==Install the modeler==
+
To verify if the Update Site works correctly, install the Basic Family modeler in a new Sirius environment or in a new Obeo Designer.
+
Open your Eclipse environment and in menu ''Help→Install New Software…''
+
 
+
[[File:Sirius_tuto5_16.png]]
+
 
+
Click on ''Add…'' button and fill the fields
+
* '''Name''': <code>Basic Family Modeler</code>
+
* '''Location''':Click on "''Archive… ''" button and retrieve the archie exported precedently
+
 
+
[[File:Sirius_tuto5_17.png]]
+
 
+
Click on "''Ok''" button
+
 
+
[[File:Sirius_tuto5_18.png]]
+
 
+
Ckick on "''Next''" button and follow instructions.
+
 
+
=Run the Modeler=
+
 
+
After Sirius or Obeo Designer has restarted, import the Sample Basic Family as described in [[Sirius/Tutorials/StarterTutorial#Import_a_sample_model | Import a sample model]]
+
After selecting the viewpoint you can use the modeler
+
 
+
[[File:Sirius_tuto5_19.png]]
+
 
+
[[File:Sirius_tuto5_20.png]]
+

Latest revision as of 10:23, 11 August 2016

This page has been moved to Update Site Tutorial

Back to the top