Open the Source Code in a Diagram Editor

We can immediately view our source code in a UML diagram, which is known as reverse engineering. Begin by viewing the project in the Package Explorer.

Right-click on the package name to open the context menu. Select 'Open in Diagram Editor' from the context menu.

The classes automatically appear in the diagram editor. From here, you can create and edit classes, create relationships between classes, etc.