Rational Rhapsody projects Editing Rational Rhapsody code using Eclipse To edit code from Rational Rhapsody using Eclipse: 1. Open the Rational Rhapsody project that contains the Eclipse configuration and make it the active configuration. 2. Launch Workbench. 3. In Rational Rhapsody, right-click a class and select Edit code in Eclipse from the menu. 4. The implementation of that class is then displayed in Eclipse, and Eclipse automatically generates a file in DMCA mode in Rational Rhapsody. 5. Edit the code as needed. The updates are recorded in the implementation of the class.
Locating implementation code in Eclipse If you want to examine the implementation code for model elements or errors using Eclipse: 1. Open the Rational Rhapsody project that contains the Eclipse configuration and make it the active configuration. 2. Launch Workbench. 3. In Rational Rhapsody, right-click a model element, such as an attribute for a class in the browser, and select Locate in Eclipse from the menu. 4. The implementation code displays in Eclipse. Opening an existing Eclipse configuration After creating Eclipse configurations for the Rational Rhapsody components that you want to work on in Eclipse, to open Eclipse: 1. Start Rational Rhapsody. 2. Choose Code > IDE Open . 3.
Eclipse launches. If the active configuration in the Rational Rhapsody browser is an Eclipse configuration, that configuration is automatically displayed in Eclipse. If the active configuration is not an Eclipse configuration, the system displays a window asking the Eclipse workspace directory . Then it displays the Eclipse configuration in the workbench interface. Note: Only those elements that can be edited in Rational Rhapsody can be opened for editing in Eclipse. 286 User Guide