Generating, editing, and roundtripping class code

The product enables you to generate code and open a text editor for editing the generated code directly from within an object model diagram.

Procedure

To generate code for a single class:

  1. Right-click the class and then select Generate.
  2. If a directory for the configuration that the class belongs to has not yet been created, the product asks if you want to create the directory. The configuration directory is under the component directory. Click Yes.
  3. The product creates the configuration directory and generates the class code to it. An output window opens at the bottom of the IBM® Rational® Rhapsody® window for the display of code generation messages.

Feedback