Free tutorials for Java, Eclipse and Web programming



Creating UML 2 diagrams with Eclipse UML2 Tools - Tutorial

Lars Vogel

Version 0.9

28.12.2009

Revision History
Revision 0.1 - 0.3017.12.2007Lars Vogel
Create first versions
Revision 0.409.10.2008Lars Vogel
Updated to Eclipse 3.4
Revision 0.514.02.2009Lars Vogel
Changed the project name, minor rework
Revision 0.629.05.2009Lars Vogel
Updated to Eclipse 3.5
Revision 0.716.06.2009Lars Vogel
Added Multiplicity
Revision 0.821.09.2009Lars Vogel
How to export images
Revision 0.928.12.2009Lars Vogel
Improved description of update site

UML2 with Eclipse UM2Tools

This article gives a short overview of UML2 and explains the usage of the Eclipse UML2 Tools for modeling UML 2 diagrams.

This article is based on Eclipse 3.5.


Table of Contents

1. UML
1.1. Overview
1.2. Definition
1.3. UML Profiles
2. Installation of Eclipse UML2 Tools
3. Eclipse UML2 Tools
3.1. Creating UML Diagrams
3.2. Multiplicity
3.3. Interfaces
3.4. Viewing the .uml file
4. Appendix: Class diagrams
4.1. Overview
4.2. Classes
4.3. Attributes
4.4. Interfaces
4.5. Relationships
4.6. Export your class diagram as image
5. Appendix: Model-Driven Architecture (MDA)
5.1. Overview
5.2. Platform Independent Model (PIM)
5.3. Platform Specific Model (PSM)
5.4. Code Mode
6. Thank you
7. Questions and Discussion
8. Links and Literature

1. UML

1.1. Overview

Eclipse supports the creation of UML2 diagrams via UML2 Tools project. UML2 Tools is a set of GMF-based editors for viewing and editing UML models.

1.2. Definition

The Unified Modeling Language (UML) is a visual language for capturing software designs and patterns. The first version of UML was defined 1994 and released by the Object Management Group (OMG) in 1997 as UML v.1.1. The syntax and a semantic of UML is defined by the OMG.

The basic building block for UML is a diagram. UML divides diagrams into structural diagrams and behavioral diagrams

The latest version UML 2 has the target to add the ability for modelers to capture more system behavior. UML 2 has the target to support model driving architectures (MDA). MDA has the target to create automatically a software program from several models.

1.3. UML Profiles

UML is intended to be extended. The formal way to extending a UML model is via a UML profile. A UML profile a a collection of UML stereotypes and constraints on elements that map the generic UML to a specific problem domain or implementation. For example a UML profile can be used to support the modeling of J2EE software components.