Changing the type mapping

The file PredefinedTypes.sbs contains the set of predefined types included in IBM® Rational® Rhapsody®. This file is opened automatically when you create a model or open an existing one.

Procedure

  1. Open the model or create a new one.
  2. Select File > Add to Model to open the Add To Model window.
  3. Navigate to <product installation folder>\Share\Properties.
  4. Set the Files of type box to Package (*.sbs).
  5. Select the PredefinedTypes.sbs file.
  6. Click Open.
  7. Because the package 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 <lang>_CG::Type::LanguageMap property to TBS.
  10. Save the modified package.
  11. Close the model.
  12. Run IBM Rational Rhapsody DiffMerge on your original file and the new one, which is located in the <project name>_rpy directory.
  13. Add your changes to the .sbs file located in <product installation folder>\Share\Properties.
    Note: The following behavior and restrictions apply to the language-dependent types.
    • In IBM Rational Rhapsody Developer for Java, 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.

Feedback