ACCELEO User Tutorial
66 pages
English

ACCELEO User Tutorial

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
66 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

ACCELEO
User Tutorial
This handbook is the exclusive ownership of its authors and was conceded to the profit of Ob eo SARL. This
handbook is protected by intellectual ownership rights.
It deals with a software product called ACCELEO, currently distributed under the open source Eclipse Public
License E(PL). The distribution of this handbook is however not free.
This handbook makes it possible to fully take advantage of the many advanced functionalities of ACCELEO
software and required on behalf of its authors and of OBEO an important compilation and synt hesis work, as
well as consequent financial and time investments. Nevertheless, there may still be mistakes l eft in this
document, OBEO shall not be held responsible for any resulting inconvenience. ACCELEO as well as the
content of this document may be altered without prior notice.
This document is not under Free li.c eThnsies document can be downloaded without any fee from the
OBEO website after proper registering. You may read and use it for any activity, commercial or n ot, related to
ACCELEO. Yet permission of copying, translating or distributing freely or commercially this manua l is subject
to prior approval by OBEO.
____________________
“OBEO”, “ACCELEO”, as well as OBEO and ACCELEO aloreg osre gistered trademarks of Obeo in Fr ance
and in other countr.ies
All other names, titles, drawings, and logos are the exclusive ownership of their authors and are protected by
intellectual ownership rights.
This ...

Sujets

Informations

Publié par
Nombre de lectures 769
Langue English
Poids de l'ouvrage 2 Mo

Exrait

ACCELEO
User Tutorial
This handbook is the exclusive ownership of its authors and was conceded to the profit of Obeo SARL. This handbook is protected by intellectual ownership rights. It deals with a software product called ACCELEO, currently distributed under the open source Eclipse Public License (EPL). The distribution of this handbook is however not free. This handbook makes it possible to fully take advantage of the many advanced functionalities of ACCELEO software and required on behalf of its authors and of OBEO an important compilation and synthesis work, as well as consequent financial and time investments. Nevertheless, there may still be mistakes left in this document, OBEO shall not be held responsible for any resulting inconvenience. ACCELEO as well as the content of this document may be altered without prior notice. This document is not under Free license. This document can be downloaded without any fee from the OBEO website after proper registering. You may read and use it for any activity, commercial or not, related to ACCELEO. Yet permission of copying, translating or distributing freely or commercially this manual is subject to prior approval by OBEO. ____________________
“OBEO”, “ACCELEO”, as well as OBEO and ACCELEO logos are registered trademarks of Obeo in France and in other countries. All other names, titles, drawings, and logos are the exclusive ownership of their authors and are protected by intellectual ownership rights. This handbook was written with the following tools: OpenOffice ____________________
Authors: Jonathan MUSSET, Étienne JULIOT, Stéphane LACRAMPE With the participation of: Goulwen LE FUR, Julien DUPONT, Guillaume RAIMBAULT, Nathalie LEPINE, William PIERS, Cédric BRUN, and Laurent GOUBET
Copyright 2006 2008 Obeo. All rights reserved.
Summary 1 - Introduction.......................................................................................................................1 1.1 - Minimum knowledge required...................................................................................1 1.2 - Documentation for Acceleo.......................................................................................1 2  Installation.........................................................................................................................2 -3 - Quick Startup....................................................................................................................3 3.1 - Import a Project into Eclipse.....................................................................................3 3.2 - Launch the Generation Chain...................................................................................5 4 - Modeling...........................................................................................................................7 4.1 - Definition....................................................................................................................7 4.2 - The Modelers.............................................................................................................8 4.2.1 - The UML2 Meta-Model with the EMF Modeler..................................................8 4.2.1.1 - Creating a Project.......................................................................................9 4.2.1.2 - Creating a UML2 Model............................................................................10 4.2.1.2.a - Creating a Package...........................................................................11 4.2.1.2.b - Creating a Class................................................................................12 4.2.1.2.c - Creating an Attribute..........................................................................12 4.2.1.2.d - Adding a Profile to a Model...............................................................13 4.2.1.2.e - Create an Association.......................................................................14 4.2.1.2.f - Validate the Model..............................................................................16 4.2.2 - Using the Example...........................................................................................16 4.2.2.1 - Importing a Project into Eclipse................................................................17 4.2.2.2 - Creating a Project “ Dynamic Web Project ”............................................19 4.2.2.3 - The model WebLog fr.uml.......................................................................22 _ 4.2.2.4 - Creating a Model......................................................................................23 5 - Initializing a Project.........................................................................................................26 5.1 - Importing Generation Modules................................................................................26 5.2 - Code Generation Files............................................................................................27 5.2.1 - Previewing the Results.....................................................................................27 5.2.1.1 - Synchronizing the Model Code.................................................................29 5.3 - Creating the Generation Chain...............................................................................30 5.3.1 - Creating a Generation Chain Using the Assistant...........................................30 5.3.2 - Creating a Generation Chain without the Assistant.........................................34 5.3.2.1 - Adding a Model.........................................................................................35 5.3.2.2 - Adding a Target Folder.............................................................................37 5.3.2.3 - Adding a Log.............................................................................................37 5.3.2.4 - Adding a Meta-Model...............................................................................38 5.3.2.5 - Adding the Generation File.......................................................................38
6 - Generation......................................................................................................................41 6.1 - Running a Generation Chain...................................................................................41 6.2 - Importing a Tomcat server......................................................................................42 6.2.1 - Importing the Tomcat Libraries........................................................................45 6.3 - Testing the Application............................................................................................47 7 - Parameters.....................................................................................................................49 7.1 The Generation Chains...........................................................................................49 -7.1.1 - Modifying a Generation Chain.........................................................................49 7.2 - The “ logs ”..............................................................................................................50 7.3 - The  Properties  Files............................................................................................51 7.3.1 - Creating a  Properties  File............................................................................51 8 - Update Management......................................................................................................54 8.1 - Manual Development..............................................................................................54 8.1.1 - Adding code to the servlets.............................................................................54 8.2 - Functional Updates.................................................................................................55 8.2.1 - Modification of the Input Model........................................................................55 8.2.1.1 - Modification of an Attribute.......................................................................55 8.2.1.2 - Adding a Class..........................................................................................56 8.2.1.3 - Deleting a Class........................................................................................57 8.2.1.4 - Renaming a class.....................................................................................58 8.2.1.5 - Adding/Modifying a Relationship (association / inheritance)...................58 8.3 - The “ Lost ” Files.....................................................................................................58 8.4 - Acceleo Traceability................................................................................................60 9 - Advanced Use................................................................................................................61 9.1 - Launching a Generation Chain Automatically from within Eclipse.........................61 10 - Additional Environments ..............................................................................................62 10.1 - Managing Different Versions.................................................................................62 10.1.1 - Sharing a New Project...................................................................................62 10.1.2 - Sharing Modifications.....................................................................................63 10.1.3 - Loading the Modifications from Another User...............................................63
  • Accueil Accueil
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • BD BD
  • Documents Documents