Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Code Reverser pages and dialogs > Ada Code Reverser > Reverse engineering options 3 page (Ada Code Reverser)
  
Reverse engineering options 3 page (Ada Code Reverser)
This page allows you to specify folder to package mappings, which determine where the code files selected for reverse engineering are created in the Model.
For information about reverse engineering Ada code, see Overview of reverse engineering legacy Ada code (Ada code)
Specifying mappings for reverse engineering code files
Having specified code files to reverse engineer, you must now map those files to target packages in the Model. You do this by mapping a folder that contains the files selected for reverse engineering (either directly or through any of the folder's subfolders) to a Package in the Model. By default, the Root Directory you specified for your project is mapped to the Root Object you specified in the Model, even though this mapping is not listed:
If the Root Directory owns all of the code files selected for reverse engineering (either directly or through any of the Root Directory's subfolders), all the code files will be reverse engineered because of the default Root Directory to Root Object mapping.
If you have selected files for reverse engineering that are not owned by the root directory or any of its sub folders, you must map folders to Packages in the Model so that each code file selected for reverse engineering is a descendent of a folder that is mapped to a Package.
* 
You cannot map any parent or subfolders of the root directory to the Model or a Package.
Each code file you select for reverse engineering is reverse engineered only if their owning folder or one of the owning folder's parent folders is mapped to a Package (either the Model itself or a Package in the Model).
Ada package mapping options
The Ada package mapping options allow you to reverse Ada packages that do not exist in the Model as either Packages or Classes.
If you chose to reverse engineer Ada packages as Classes and the Reverser can match an Ada package to a Package in the Model, the Reverser updates that Package. If you model Ada Packages as Classes in Modeler, you can make use of Associations and Inheritance when modeling those Ada packages.
If you chose to reverse engineer Ada packages as Packages and the Reverser can match an Ada package to a Class in the Model, the Reverser updates that Class.
To map a path to a package:
1. Click the Add Mapping button.
2. Select the required folder.
3. Select the Map to Package check box, and then select the required Model or Package.
4. Click Insert
To move a mapping up or down the list
1. Select the mapping you want to move.
2. Use the and buttons to move the mapping to the required position.
To change a mapping
1. Select the mapping you want to change.
2. Click the Edit Mapping button.
3. Make the required changes, and then click Update
Alternatively, you can double-click a mapping in the list to change it.
To delete a mapping
1. Select the mapping you want to delete.
2. Click the Delete Mapping button.