Creating UML-to-Java transformation configurations

To run a transformation, you can create a transformation configuration. A transformation configuration contains the information that the transformation uses to generate the output that you expect. A transformation configuration also contains information that is specific to a particular type of transformation.

To simplify working with the transformation configuration file, save the configuration file in the project that contains the elements to transform.

To create a transformation configuration:

  1. Depending on the view that you are working in, complete one of the following steps:
    • Click File > New > Transformation Configuration. If Transformation Configuration is not a menu item, click File > New > Other > Transformations > Transformation Configuration.
    • In the Pattern Explorer view, right-click a transformation; then click New Configuration.
  2. In the New Transformation Configuration wizard, on the Name and Transformation page, in the Name field, specify a name for the configuration.
  3. From the Forward transformation list, select the appropriate transformation.
  4. Optional: If a reverse transformation is supported and available, you can select the Enable reverse transformation check box. If you select this check box, when you run the transformation configuration, you can select the forward or reverse transformation.
  5. Specify the destination for the transformation configuration file. The destination is a relative path in your current workspace. You can specify a fully qualified project name or folder name. If you specify a folder in a project, you must prefix the folder name with a slash (/).
  6. Click Next and complete the pages in the wizard.
  7. Click Finish.

Feedback