ibm Rational Rhapsody 7.5 — Display option settings

Opening the main diagram for a class You can edit the code between the annotation symbols in a text editor and then roundtrip your changes back into the model. The roundtripped edits will be retained upon the next code generation. This is how Rational Rhapsody keeps the code and the model in sync to provide model-code associativity. Note Any text edits made outside the annotation symbols might be lost with the next code generation. For more information, see Deleting Redundant Code Files . To roundtrip code changes back into the model: 1. Edit the generated class code between the //#[ and //#] annotation symbols. 2.

In the browser or diagram, right-click the class containing the code that you just edited and select Roundtrip . If you view the Implementation box of the specification window for the operation (or the statechart for the class if you edited transition code), you can see that your text edits were added to the model. Opening the main diagram for a class You can specify a main diagram for a class in the Features window. This is usually the diagram that shows the most important information for a class. For example, in the PBX sample, the PBX diagram is specified as the main diagram for the Connection class.

The main diagram for a class must be either an object model diagram (OMD) or a use case diagram (UCD). 1. In the OMD, right-click the class. 2. Select Open Main Diagram . Display option settings Rational Rhapsody allows a great deal of flexibility in how elements are displayed. Display options relate to how the element name, stereotype, and compartments are displayed in the diagram. For example, to change the display options for a class, right-click the class in the diagram and select Display Options (or select it and choose Edit > Display Options ). The Display options for the selected class opens. Rational Rhapsody 87