Step-by-Step Guide to Start an Eclipse project
Reverse Engineering Log4j Code into UML Diagrams with EclipseUML Free Edition 1.2.1






Xavier Maysonnave, Software Consultant and Linux advocate, xavier@omondo.com
Vlad VARNICA, Business Development Manager, sales@omondo.com

May 2003

Omondo Corporation,
IBM Partnerworld for Developer


This tutorial gives you a guide to the basic class diagram reverse engineering and to using the popular UML editor with many powerful features. The tutorial covers fundamental concepts and common activities, and then builds on those foundations to quickly familiarize yourself with this excellent graphical UML editor. This tutorial is not copyright protected, you may copy elements of this tutorial as you wish.

Tutorial length:  Under two hours

Formats:  XHTML





Summary :

Log4j is an open source project which controls which log statements are output. The general purpose of this tutorial is to show the SWT technology and the EclipseUML functions such as reverse engineering, navigation and drill down inside Java packages or classes. We will be focused on understanding the general Log4J architecture. The UML diagram package (below) has been created using Eclipse platform and Omondo EclipseUML. This tutorial will be helpful to understand how to import existing open source projects inside Eclipse and to have a quick understanding of packages and classes interactions.
In order to promote SWT technology, this tutorial will also show zooming, browsing and drill down EclipseUML functions. Finally the use of GEF (Graphical Editor framework) allows Microsoft or Linux look and feel inside a traditional and open source IDE.





Overview :

The major steps to reverse engineer Log4j Java code into EclipseUML Model Diagram are as follows :
  1. Create a Java project
  2. Load log4j inside Eclipse
  3. Create the UML package and class diagrams
  4. Navigate inside your Log4j UML Diagram.

The Java project creation is beginner level. The loading of Log4j inside Eclipse and the creation of Log4j model is intermediate level.
The screenshots were captured using Eclipse 2.1, EMF 1.1 and GEF 2.1
We are using Sun JDK 1.4.2 and Eclipse 2.1 on Windows XP SP1. We consider that you have successfully installed EclipseUML Free Edition 1.2.1.


Contents :

This tutorial is organized in a straightforward manner. Steps 1 to 6 describe how to import Log4j inside Eclipse. Step 7 describes how to reverse Log4j using EclipseUML.


Step 1:    Summary
Step 2:    Prerequisites
Step 3:    Creating a Java Project
Step 4:    Log4j Import
Step 5:    Jar Files Import
Step 6:    Debug the T class
Step 7:    Reverse Log4j inside EclipseUML


Reverse Engineering features chart :

EclipseUML Free Edition 1.2.1 EclipseUML Enterprise Edition
May 2002 August 15th 2003
Package dependency reverse
Classe diagram reverse
Attribute reverse
Association reverse
Inheritance reverse
Dependency reverse
Jar file reverse
Sequence diagram reverse
Project reverse
Getter/setter recognition
Cardinality recognition
Changeability recognition
Container detection
Container recognition
Qualified association recognition



 
Last update Wed May 28 14:45:22 CEST 2003 Valid XHTML 1.0 Valid CSS All text, graphics © 2003 by Omondo