开发者

IntelliJ IDEA forward-engineering with UML?

开发者 https://www.devze.com 2023-04-06 22:04 出处:网络
From IntelliJ IDEA Help System on UML: Forward engineering, which enables you to design and开发者_开发知识库 create a visual

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消