UML with IntelliJ IDEA and PlantUML Plugin
IntelliJ IDEA with PlantUML plugin can generate UML diagrams by DSL. Because PlantUML diagrams are made of text data, it becomes simple to manage differences with version control systems like Git.
Prerequisites
Software | Version |
---|---|
IntelliJ IDEA | 2016.3.4 |
PlantUML Integration | 2.5.0 |
Graphviz | 2.3.8 |
Coding
After creating a *.puml
file, you can begin coding on it and immediately view the rendered diagram.
Here is a short example. For PlantUML DSL, please visit the official website.
@startuml
interface Person
abstract Employee
interface Person {
+ string getName();
}
class Employee {
- string name;
--
+ string getName();
+ string getEmployeeId();
}
Person <|-- Employee
@enduml
Conclusion
PlantUML is easy to use and simple to manage because it is composed of text data. For small- and-mid-sized applications, it will be the suitable choice.
I hope you will find this post useful.