Language-independent types 7. Because the package already exists in the model, a window opens so you can add the package to the model under a new name, such as PredefinedTypes_new . 8. Click OK . 9. Change the property _CG::Type::LanguageMap to TBS . 10. Save the modified package. 11. Close the model. 12. Run DiffMerge on your original file and the new one, which is located in the name>_rpy directory. 13. Add your changes to the .sbs file located in path>\Share\Properties . Note The following behavior and restrictions apply to the language-dependent types. Љ In Rational Rhapsody in J, language-independent types are supported only as modeling constructs.
You cannot use them in actions or operation bodies. Љ This feature does not apply to COM and CORBA. Changing the order of types in the generated code Types are generated in code in the order in which they appear in the browser. This can be a problem if one type depends on another that is defined later. For example, you can define a type FirstType as: typedef SecondType %s Next, define a type SecondType as: typedef int %s These two types defined in this order would result in a compilation error.
To avoid this kind of error, you can control the order in which types are generated using the Edit Type Order in Code window, which is accessible via the menu for the Types category for an individual package or a class. Rational Rhapsody 115