Reverse Engineering
of your existing code


Getting Started: From Source Code to UML

Creating a UML model from your existing source code is really easy with UML Lab.

Quickstart: Right-click on your project in the Eclipse Package Explorer and select New > UML Model and Class Diagram. Confirm with Finish. Select all classes to be included in your diagram and click OK.

Start by right-clicking your project in the Package Explorer to open its context menu and select New > UML Model and Class Diagram.

This will open a dialog where you can configure the model and diagram file. It also allows you to customize the sources included in the initial reverse engineering. Just click Finish to close the wizard and parse all sources (e.g. all Java files) in your project.

After UML Lab's template-based Reverse Engineering has finished processing your project, you will be presented with a dialog allowing you to configure the contents of your first class diagram:

The left section of the dialog lists all classes of the model. The classes shown in the class diagram are listed in the right section.

Move elements between the two sections by double-clicking them or by selecting them and using the arrow buttons between the lists. The text areas on top of the sections can be used to filter the lists and allow you to easily find classes in larger model. You can use partial names and wildcards as well as camel-case patterns.

Confirm your selection with OK to close the dialog. Congratulations! You've just created your very first UML Lab class diagram.

Closing remarks

By selecting your class diagram's content as outlined above, you can focus on specific parts of your project. Changing this selection later on is very easy, too:

  • By right-clicking on the diagram background to open its context menu, you can go back to the Configure Class Diagram dialog at any time.
  • Use the three fly-out buttons available above all selected classes. They allow you to add sub- and super-classes as well as associated classes with a single click - making model navigation and exploration child's play.
  • Simply drag and drop source files from the Package Explorer onto your diagram to add the contained classes (new sources will be reversed on demand).

Please note that you can create multiple diagrams for a single model. This way, you can maintain different views of your code base - for example to separate data model and business logic. Create additional diagrams by right-clicking the model file in the Project Explorer and choosing New > UML Class Diagram from the context menu.

Have fun coding and modeling with UML Lab.