Automatically navigating to the source code of Java diagram elements

You can automatically navigate from the diagram editor to the source code of Java diagram elements (classes and interfaces) to make modifications.

About this task

To automatically navigate to the source code of a Java diagram element, complete the following steps:

Procedure

  1. On the tool bar, click the Auto-Navigate to Source button.
  2. In the diagram editor, click a Java class or interface (or its field or method).

Results

The source code of the selected Java element automatically opens in a separate editor. As your selection of the element in the diagram changes, the corresponding source code is shown in the source editor.
Remember: You can always use the pop-up code editor from within class diagrams to view or directly edit Java classifiers, such as classes and interfaces.

Feedback