You can automatically apply the changes you make to the
properties that control the Add New menu for
use in other projects by setting your applicable property changes
in a New Term stereotype that is associated with a particular profile
that is set to be applicable to a project, and then applying the profile
to your other projects.
Procedure
- Create a new project (name it, for example, Project2).
- Create a profile for the project. Right‑click
the project name, select and name it (for example, MyProfile).
- Create a stereotype for the profile. Right‑click
the profile and select and name it the same
as the profile.
If you name this stereotype the same
name as the profile (in this example, MyProfile), IBM® Rational® Rhapsody® auto-applies
the stereotype to a project when you use the profile.
- Open the Features window for the stereotype.
- On the General tab:
- Click the New Term check
box to create a New Term stereotype for this profile.
- From the Applicable to drop‑down list, select
the Project check box to make this New Term stereotype applicable
to a project.
- On the Properties tab, set the elements
you want to appear for the Add New menu through
the use of the following properties:
- General::Model::CommonList property
if you want to reorganize the common list section of the Add
New menu.
- General::Model::SubmenuList, General::Model::Submenu#List,
and General::Model::Submenu#Name if you want to reorganize
the bottom section of the Add New menu
- General::Model::AddNewMenuStructure property
if you want to completely customize the Add New menu.
Using this property overrides the other properties mentioned in this
topic.
- Click OK.
- Set the stereotype for the project to the
New Term stereotype.
- Open the Features window for the project.
- On the General tab, in the Stereotype list,
select the check box for stereotype.
- Click OK.
- To confirm your changes, right‑click a package
in your project and select Add New. Only those
elements you entered in the CommonList property and SubmenuList, Submenu#List,
and Submenu#Name properties, or AddNewMenuStructure appear,
as long as they are applicable to your project.
- Make a corresponding text file for your
custom profile and give it the same name but with the .txt extension.
Add a description for the profile. The content of the text files displays
on the description area of the New Project window.
For
example, if your customized profile is MyProfile.sbs,
create a MyProfile.txt file.
- Copy the .sbs file for the profile and the
corresponding .txt file to <product installation folder>\Share\Profiles\<customized
profiles foldername>. For example, you would
place a copy of the MyProfile.sbs and MyProfile.txt files
in, for example, C:\Rhapsody\Share\Profiles\CustomProfiles.
If you have packages under your profile, choose to not make each package
its own separate unit so that you can keep the entire profile in a
single .sbs file. Right‑click the package, select , and clear the Store in separate file check
box on the Unit Information window that opens).
- To use the custom profile, when you create
a new project, select the profile from the Project Type list
of the New Project window.