Entering code-centric mode

There are a number of ways to enter code-centric mode.

About this task

Regardless which of these methods you used to enter code-centric mode, notice the following items in the Rational Rhapsody browser:

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.

If you are using Rational Rhapsody to visualize existing code

Procedure

  1. Open the Reverse Engineering window (choose Tools > Reverse Engineering).
  2. Select the files to be reverse engineered.
  3. Start the reverse engineering process.

Results

When reverse engineering is completed, Rational Rhapsody automatically enters code-centric mode.

If you are creating a model and do not plan to import any existing code, but still want to take advantage of the code-centric approach

Procedure

  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 uses the code-centric settings

Procedure

  1. Use File > Add to Model to add the code-centric settings to the model (CodeCentric75Cpp.sbs or CodeCentric75C.sbs)
  2. Create a 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 serves as the blueprint for your model.

Feedback