automatic code generation from models with easyuml ... · easyuml easyuml is a simple plugin for...

16
Automatic code generation from models with easyUML (NetBeans plugin) 23/10/2017 easyUML 1

Upload: others

Post on 30-Apr-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Automatic code generation from modelswith easyUML (NetBeans plugin)

23/10/2017 easyUML 1

Page 2: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Topics covered

Introduction to easyUML

Hands-on session

Other UML tools

23/10/2017 easyUML 2

Page 3: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Introduction to easyUML

easyUML23/10/2017 3

Page 4: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

easyUML

easyUML is a simple plugin for NetBeans

It allows to create UML class diagrams and automatically generate

code from diagrams. And viceversa it allows to create UML diagrams

from code.

http://plugins.netbeans.org/plugin/55435/easyuml

23/10/2017 easyUML 4

Page 5: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Before installation (for lab computers)

'Tools > Plugins’ > ‘Settings’ and set ‘Plugin Install Location’ into

▪ ‘Force install into user directory’

23/10/2017 easyUML 5

Page 6: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Install easyUML

NetBeans 8.0+:

▪ The plugin is available on the NetBeans Plugin Portal Update

Center. Use 'Tools > Plugins' action from the NetBeans IDE main

menu.

Manual installation:

▪ Download the plugin and extract the archive

http://plugins.netbeans.org/plugin/55435/easyuml

▪ Install it manually

From the NetBeans IDE main menu: Tools > Plugins >

‘Downloaded’ tab > ‘Add Plugins…’ button > Go to the directory that

contains the plugin and open all the .nbm files > ‘Install’ button

23/10/2017 easyUML 6

Page 7: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

easyUML: Hands-on session

easyUML23/10/2017 7

Page 8: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Create new UML project

23/10/2017 easyUML 8

File > New Project…

Page 9: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Create new UML project (2)

23/10/2017 easyUML 9

Select UML

UML Diagrams Project

Page 10: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Create new UML project (2)

23/10/2017 easyUML 10

1. Name of the project

2 . Finish

Page 11: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Add a class diagram

23/10/2017 easyUML 11

1. Right click on Class Diagrams folder

2. File > Class Diagram …

Page 12: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Create a Diagram

23/10/2017 easyUML 12

1. Name of the class diagram

2. Finish

Page 13: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Live Example

23/10/2017 Sviluppo open source 13

Page 14: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Generate code from model

23/10/2017 Sviluppo open source 14

1. Right click on .cdgfile

2. Select

Page 15: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Generate model from code

23/10/2017 Sviluppo open source 15

1. Right click on the Java Package

2. Select

Page 16: Automatic code generation from models with easyUML ... · easyUML easyUML is a simple plugin for NetBeans It allows to create UML class diagrams and automatically generate code from

Other UML tools

There are more sophisticated tools for UML design and automatic code

generation from UML diagrams.

▪ Modelio (open source): https://www.modelio.org/

▪ ArgoUML (open source): http://argouml.tigris.org/

▪ Umbrello (open source): https://umbrello.kde.org/

23/10/2017 easyUML 16