There was a time where code started from UML diagrams which often stubbed out the code, thus inherently providing the useful class and sequence diagrams. You can view usages of the diagram element in the project files - select the desired element and press Control+Alt+F7.Testimonials MaintainJ unravels convoluted web applications in a day or two versus a week or twoĪs an independent software engineer and IT consultant I frequently must unravel the logic of existing codebases. You can quickly locate a module or a library if you have too many items in your graph - press Control+F and from the list that opens, select the element you're looking for. You can jump to the source code - select the desired item and press F4 If you have a large graph with lots of modules and connections - use Alt+mouse to zoom in on different parts of your diagram. IntelliJ IDEA lets you manage your diagram performing basic diagram actions such as jumping to the source code, finding usages, and so on. In this case, you can always see what gets pulled in with the module. IntelliJ IDEA displays connections between modules and transitive dependencies with bold arrows. Yellow is reserved for named modules (contain module-info.java) In projects with Java modules, you can easily spot named or automatic modules since IntelliJ IDEA displays them in different colors:īrown is reserved for IntelliJ IDEA modules However, IntelliJ IDEA uses the following colors to display certain connections between modules and dependencies:īlue arrows are reserved for libraries and modules dependencies You can open the module-info.java file in the editor and from the context menu also create a diagram.Īfter you have generated a module dependencies diagram you can analyze modules and their dependencies.įor Project modules, UML conventions are followed when IntelliJ IDEA displays connections (arrows) between module dependencies. For example, right-click the java.jnlp file and from the context menu select Java Modules Diagram. You can create a diagram for the JDK module as well. IntelliJ IDEA allows only one Java module per one IntelliJ IDEA module. When you work with Java modules, keep the following in mind: IntelliJ IDEA displays a module and its dependencies. Right-click the selected item and from the context menu, select Diagram | Show Diagram (or press Control+Alt+Shift+U).įrom the list that opens, select a type of the diagram you want to create. View module dependencies diagramįrom the main menu, select View | Tool Windows | Project ( Alt+1), select an item (project/module) for which you want to view a diagram. To view the documentation on Spring, Maven, or Gradle diagrams, refer to the appropriate sections for Spring, Maven, and Gradle. To view and manage such diagrams, make sure you have the JDK 9 or a later version installed. Java modules - which are part of the Jigsaw project that comes with JDK 9. Project modules - which are part of your multi-module project. You can view, analyze, and manage UML diagrams for the following modules: When you work with a large multi-module project, sometimes it is more convenient to check how modules and their dependencies are connected in a graph.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |