To run the transformations, you must import the plug-in into your
workspace, start the runtime workbench, and invoke the transformations.
About this task
Importing the sample transformations
To import the
sample:
Procedure
- On the Model-to-text transformation sample overview page, click Import
the sample.
- In the Sample Model-to-Text Transformations wizard,
in the Project Name field, specify a name for the sample
project.
- Click Finish.
- If you are prompted to switch to the Plug-in Development perspective,
click OK. The wizard creates the new
project in your workspace. The Package Explorer view
displays the new plug-in project. You can now browse the sample UML modeling
plug-in code.
Results
The imported plug-in contains three transformations:
- Class to Text > Console
- Class to Text > File
- State to JSP