ibm Rational Rhapsody 7.5 — Using an Object Model Diagram

Generating Code for Individual Elements Generating Code for Individual Elements You can generate code for a package and all its classes, or generate code for selected classes within a package. You can generate code from the Code menu, the browser, or an OMD. Before you generate code for a class or package, you must set the active configuration, just as if you were generating the executable for the entire model. For more information, see Setting the active configuration . Using the Code Menu 1. Select a class from the browser, or select one or more classes in an OMD. 2. Select Code > Generate > Selected Classes .

If you have generated code for the entire model at least once, the Generate command generates code only for elements that have been modified since the last code generation. 1. Select a class from the browser, or select one or more classes in an OMD. 2. Select Code > Re Generate > Selected Classes . Using the Browser 1. In the browser, right-click a package or class. 2. Depending on your choice: – For a package, select Generate Package from the menu to generate code for all classes in the package. – For a class, select Generate Class to generate code only for that class. Using an Object Model Diagram To generate code for a class in an OMD, right-click the class and select Generate Class .

Rational Rhapsody 919