Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA forward-engineering with UML?

From IntelliJ IDEA Help System on UML:

Forward engineering, which enables you to design and create a visual model, and populate it with node elements, members and relationships. IntelliJ IDEA automatically generates source code and keeps it synchronized with the model.

...but it does not tell you how to do that. I know how to show the UML Diagram for existing classes (Right click on a class file from Project window, select Diagrams > Show Diagram.

What I want to do is the other way around: Create UML Class Diagrams, and generate method stubs from those diagrams.

like image 597
Sahat Yalkabov Avatar asked Nov 05 '22 13:11

Sahat Yalkabov


1 Answers

If you want to do this, i think you have to click show diagram in a certain source folder or package and then right click in the diagram and you will have the option to create classes or interfaces. When right-clicking on a class there will also be an option to create methods and fields in this class.

So folow the show diagram, then right click and use the context menu to create classes/methods etc.

like image 72
devnoo Avatar answered Nov 14 '22 22:11

devnoo