J-Diagram is a Visual Studio Code extension to help Java developers. This provides a convenient conversion between the Java source code and the class diagram.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
J-Diagram is a Visual Studio Code extension to help Java developers. This provides a convenient conversion between the Java source code and the class diagram.
Features
J-Diagram supports 2 major features
Extract drawio diagram from Java sources
Create Java sources from drawio diagram
How to Use J-Diagram
Extract drawio diagram from Java source file.
Open command palette ( cmd or alt +shift + p).
Type J-diagram : Convert Source to Diagram to change Java sources into drawio diagram
Choose a way you would like to specify a path to Java sources.
Specify where to find java sources
The path may be a directory path for Java sources or a file path for just one Java file.
Then, decide where you would like drawio file to be created. The file will have name of j-diagram.drawio
Create Java sources from drawio diagram.
Open command palette ( cmd or alt +shift + p).
Type J-diagram : Convert Diagram to Sources to extract Java sources from drawio diagram.
Choose a way you would like to specify a path to drawio file.
Then, locate the drawiofile.
Decide where you would like Java files to be created.