Generate Class Diagram Using Eclipse

Generate Class Diagram Using Eclipse explains step by step details of installing and configuring ObjectAid plugin with eclipse, this plugin will automate the generation of Class Diagram and Sequence Diagram from java source code.

You need to remember one thing that for generating Sequence Diagram, you need a valid licence. But for generating Class Diagram, it is free.

ObjectAid UML Explorer is an agile and lightweight code visualization tool for the Eclipse IDE.

It shows your Java source code and libraries in live UML class and sequence diagrams that automatically update as your code changes.

Reference -> http://www.objectaid.com/home

You need to download

  1. Eclipse 3.7
  2. ObjectAid UML Explorer

You can install the ObjectAid UML Explorer Eclipse plugin using Eclipse update manager from the following links

  1. http://www.objectaid.net/update

ObjectAid UML Explorer Installation

For Installing ObjectAid Plugin from eclipse, select Help->Install New Software Then click add, then provide Name and Location according to the following screenshot

ObjectAid Eclipse Installation

Then select the ObjectAid class diagram plugin it is a free tool, Sequence diagram plugin requires a valid licence, click next and accept the license details, it will install the ObjectAid plugin for generating class diagram

ObjectAid Eclipse Installation

ObjectAid UML Explorer Configuration

After install, you can configure ObjectAid from eclipse, Window->Preferences->Java->ObjectAid->Class Diagram

ObjectAid Configuration

Generate Class Diagram Using Eclipse Plugin

To create a new Class diagram select File > New > Other and select ObjectAid UML Diagram wizard (See the below screenshot).

ObjectAid Configuration

select the project source folder and provide file name for the UML Class DIagram  (See the below screenshot).

ObjectAid Configuration

Now you can see test.ucls file inside project src folder. After opening test.ucls file, you can drag and drop the java classes and plugin will automatically generate Class Diagram for you. (See the below screenshot).

ObjectAid Configuration


After generating the Class Diagram, you can export the same in various formats like png,gif,jpeg etc.





1 Responses to "Generate Class Diagram Using Eclipse"
  1. Macy Dalby 2013-11-29 09:57:19.0

Your email address will not be published. Required fields are marked *