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

  1. Create a project (name it, for example, Project2).
  2. Create a profile for the project. Right‑click the project name, select Add New > Profile and name it (for example, MyProfile).
  3. 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.
  4. Open the Features window for the stereotype.
  5. 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.
  6. 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, and General::Model::Submenu#Name if you want to reorganize the section toward the end 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 that are mentioned in this topic.
  7. Click OK.
  8. Set the stereotype for the project to the New Term stereotype.
  9. Open the Features window for the project.
  10. On the General tab, in the Stereotype list, select the checkbox for stereotype.
  11. Click OK.
  12. 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.
  13. 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.sbsx, create a MyProfile.txt file.
  14. 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 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 .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).
  15. To use the custom profile, when you create a new project, select the profile from the Project Type list of the New Project window.