Project migration and multi-language projects Note If you have a license for multi-language projects, no conversion is performed when you open a model from another language version of Rational Rhapsody. If you would like to convert an entire project, just change the unit language at the project level. For details, see Determining language of a unit in multi-language projects . Multi-language projects Rational Rhapsody uses units to permits projects to contain components from different development languages. Each unit is associated with a specific language.
Determining language of a unit in multi-language projects When you create a new unit, the Unit Information window provides a list that allows you to select a specific language for the unit. The default language for a new unit is the language of its owner unit. To change the language of an existing unit: 1. Right-click the unit in the browser, and then select Unit > Edit Unit . 2. When the Unit Information window is displayed, select the language from the list. 3. Click OK . 4. When you are asked to confirm the change, click Yes .
If you are changing the language of a unit that contains subunits, Rational Rhapsody will ask you if you also would like to change the language of all of the contained subunits. Note As is the case for project migration, if you change the language of a unit, you do not permanently lose any language-specific features of the unit. These language-specific characteristics will not be displayed, and any code generation will be in the new language. However, Rational Rhapsody maintains this information. If, at a later stage, you switch the unit back to the original language, you will once again see these language-specific characteristics.
When you move units of one language to a package of another language, Rational Rhapsody will inform you that they are different languages and will ask you to confirm the move. If you try to add a unit that is associated with another language, Rational Rhapsody will ask you to confirm the addition of the unit. You will also be prompted for confirmation if you add “by reference” a unit that is associated with another language. Rational Rhapsody 269