Code-centric mode 3. Start the reverse engineering process. When reverse engineering is completed, Rational Rhapsody will automatically enter code-centric mode. If you are creating a new model and do not plan to import any existing code, but still want to take advantage of the code-centric approach: 1. Open the New Project window (choose File > New ). 2. Using the Project Settings drop-down list, select the code-centric settings. If you want to create a single component in a project that will use the code-centric settings: 1. Use File > Add to Model to add the code-centric settings to the model ( CodeCentric75Cpp.sbs or CodeCentric75C.sbs ) 2.
Create a new component, and add a dependency from the component to the code-centric settings. 3. Apply the AppliedProfile stereotype to the dependency. 4. Generate code using the new component. This code will then serve as the blueprint for your model. Regardless which of these methods you used to enter code-centric mode, you will notice the following in the Rational Rhapsody browser: Љ The code-centric settings will be displayed under the Settings category. Љ The entire project or individual components will have a dependency upon the code-centric settings with the AppliedProfile stereotype applied to the dependency.
Note The dependency will be at the project level only if you entered code-centric mode by selecting the code-centric settings in the New Project window. Leaving code-centric mode To switch from code-centric to model-centric mode: 1. Delete any dependencies upon the code-centric settings. 2. Highlight the code-centric settings in the browser, and open the pop-up menu. 1070 User Guide