After you customize your tooling model, you can generate
tooling code based on the model. You can also re-generate tooling
code if you modified the tooling model.
Before you begin
Note: Before you generate profile tooling code by using the
following procedure, verify that the profile was created with the
UML Profile Tooling Plug-in Project wizard. This command is not available
for profiles that are located in a modeling project.
About this task
To generate tooling code:
- Right-click the profile tooling model; then, click Generate
Tooling Code.
Tip: If you do not see the Generate Tooling
Code command, you must open the UML Profile Tooling Plug-in
Project wizard, create a new profile tooling project, and specify
the profile. If you still do not see the Generate Tooling
Code command, ensure that you are in the Modeling perspective.
To
re-generate tooling code:
- Right-click the profile tooling model; then click Generate
Tooling Code. By default, the tooling code and associated
files are overwritten.
Tip: If you make changes to the generated code (for
example, Java), you can protect the code from being overwritten by
ensuring that the header of the method includes
NOT as
shown in the code below:
/**
* @generated NOT
*/