Reusing property changes for the Add New menu
You can automatically apply the changes that 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 project (name it, for example,
Project2
). - Create a profile for the project. Right‑click
the project name, select Add New > Profile and name it (for example,
MyProfile
). -
Create a stereotype for the profile. Right‑click the profile and select Add New > Stereotype and name it the same as the profile.
If you name this stereotype the same name as the profile (in this example,MyProfile
), 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 checkbox to create a New Term stereotype for this profile.
- From the Applicable to drop‑down list, select the Project checkbox to make this New Term stereotype applicable to a project.
- On the Properties tab, set the elements that 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
, andGeneral::Model::Submenu#Name
if you want to reorganize the section toward the end of the Add New menuGeneral::Model::AddNewMenuStructure
property if you want to completely customize the Add New menu.
Using this property overrides the other properties that are 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 checkbox 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 andSubmenuList
,Submenu#List
, andSubmenu#Name
properties, orAddNewMenuStructure
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 isMyProfile.sbsx
, create aMyProfile.txt
file. -
Copy the .sbsx 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.sbsx
andMyProfile.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 .sbsx file. Right‑click the package, select Unit > Edit Unit, and clear the Store in separate file checkbox 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.