Together Reverse-Engineering

introduction

The cheat sheet will guide you through the steps of converting the existing source code to UML model and creating the corresponding package diagrams within the model. 

Reverse engineering functionality helps you to visually represent complex source code projects and analyze them by converting your existing source code to UML models. 
Together provides two ways to use reverse engineering: 
- Converting the existing source while creating a new project 

- Import the existing source code to Java Modeling project.


converting while creating a new project 

The first thing you will need is a Java Modeling Project. 
Select "File->New->Project...", expand the "Modeling" folder, and choose "Java Modeling Project" in the list, and click "Next". Then perform the following actions: 
1. Enter the project name on the "Modeling Project" page. 
2. Select "Create project from existing source". 
3. Browse to source code folder. 
4. Click "Finish". 
The created project will contain the selected source code. Together automatically creates package diagrams for the selected code. 


importing a existing source code

It is supposed that you have a Java Modeling project you want to import the existing source code to. 
To import the source code, perform the following: 
1. Right click a target Java Modeling project in the Model Navigator and select "Import" on the context menu. 
2. In the Import wizard select "File System" and click Next. 
3. Browse to folder with source code to import. 
4. Select sources you want to import or click "Select all" to import the entire folder. 
5. Click "Finish". 
After your source code is imported, you should see a visual representation of your source code project in a UML model. 
You can analyze your project and edit the model. Changes in the model are immediately propagated to source code and vice versa, thanks to LiveSource™ (also known as simultaneous roundtrip engineering). 

你可能感兴趣的:(Together Reverse-Engineering)