You can customize profile tooling so that profile users
see specific graphics, palettes, and menus when a custom profile is
applied to a model. A relationship exists between the profile and
the profile-tooling model. For example, the profile-tooling model
can create profile-tooling elements for some, or all of the stereotypes
of a profile. You can define which elements are incorporated into
the profile-tooling model by modifying the properties of the tooling
model.
About this task
To customize your profile-tooling model:
Procedure
- To specify the palettes and menus in a profile tooling
model for use within a custom profile, set the Advanced Tooling Model
Generation Properties by completing one of the following steps:
- To set the properties for the first time, on the New UML Profile
Tooling Plug-in Project page, click Advanced.
- If you already generated a profile tooling model, access the
Advanced Tooling Model Generation Properties from the Project Explorer
view: right-click the profile tooling model; then click Properties.
Select Tooling Model Generation and click any
of the following tabs: General, Elements,
or Shapes.
- Modify and save the model-generation properties.
- To update the profile-tooling model, complete the following
steps:
- In the Project Explorer view, right-click the tooling
model; then click Update Tooling Model.
- In the Update Target Files window, click OK to
open the visual merge window. The left side of the Merge window shows
the tooling model that was generated from the latest version of the
profile. The right side of the Merge window shows the current tooling
model.
Note: Avoid accepting changes that delete existing
diagrams. Diagrams are not generated by default in the tooling model,
so any diagrams that you added are considered changes.
- After the tooling model is updated, in the Project Explorer
view, right-click the tooling model; then click Generate
Tooling Code.
Note: You can modify the tooling
model generation properties even after the code for the tooling model
is generated. However, if you clear an option on the properties page
and then regenerate the tooling code, the change is not removed from
code that was already generated; you must manually delete unwanted
code.