Navigating in Eclipse

From user-defined operations, choice points, state (entry and exit), and transition methods in Eclipse, you can easily navigate to the corresponding element in Rational Rose RealTime.

To navigate from an operation, choice point, state (entry and exit), or transition method:

  1. In Eclipse, click Window > Preferences.
  2. Click Rose RealTime Integration and select the Features tab.
  3. Ensure that the Select elements from C/C++ Projects View option is selected.
  4. Optional. To automatically select an element from the Rational Rose RealTime browser, select the Also select element in browsers option.
  5. In the C/C++ Projects view, navigate through the generated source code for any capsule with an operation, choice point, state (entry and exit), or transition.

The generated methods are in the directory you specified in the CodeGenDirName box on the C++ Generation tab specified in Rational Rose RealTime.

  1. Select any method for a user-defined operation, choice point, state (entry and exit), or transition. 

You can recognize valid methods by the following patterns:

Note: Because the names of operations are specified by the user, there is no method name pattern specified.

If not currently open, the diagram containing the classifier (capsule or class) associated with the source file for the selected operation, choice point, state (entry and exit), or transition method displays in Rational Rose RealTime. The corresponding operation, choice point, state (entry or exit), or transition is also selected in the main browser.

Navigating from Build Errors

After you build a component in Rational Rose RealTime or Eclipse, you may encounter compilation errors. If there are errors, you can easily navigate to that code and investigate:

 

  1. In Eclipse, build a project.

If the compilation process encountered any errors, they appear in the Task list.

  1. From the Task list, right-click a build error and select Navigate to Rose RealTime.

Note: The Navigate to Rose RealTime menu item is disabled if there is no connection established to Rational Rose RealTime, or if the error does not refer to a specific line number in a corresponding source file.

If not currently open, a diagram for the capsule or class corresponding to the source file opens, and that model element is selected.