PlantUml for Atom in Windows

Time:2020-4-11

Is plantuml?

Support rapid UML drawing

  • Sequence diagram

  • Use case diagram

  • Class diagram

  • Activity diagram

  • Component diagram

  • State diagram

  • Deployment diagram

  • Object diagram

  • wireframe graphical interface

Platuml provides plug-ins for atom, Android studio and sublime text 2, which is convenient and quick to draw the required UML in your editor.


    Bob -> Alice : hello

PlantUml for Atom in Windows

Need to?

  • Two packages are required:language-plantumlplantuml-preview.

  • A Windows plug-in: graphvizCan't open the website? Look at the end of the article.

How do I install package in atom?

PlantUml for Atom in Windows

Use

  • ctrl + alt + P Open. Pu file

  • Save preview as local png


    @startuml
    
    abstract class AbstractList
    abstract AbstractCollection
    interface List
    interface Collection
    
    List <|-- AbstractList
    Collection <|-- AbstractCollection
    
    Collection <|- List
    AbstractCollection <|- AbstractList
    AbstractList <|-- ArrayList
    
    class ArrayList {
    Object[] elementData
    size()
    }
    
    enum TimeUnit {
    DAYS
    HOURS
    MINUTES
    }
    
    @enduml

Design sketch:

PlantUml for Atom in Windows

Note: graphviz can’t be opened. It’s not easy to use scientific Internet. We can use choco to install graphviz.

  • Install chocolate in CMD

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('http://bit.ly/psChocInstall'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
  • choco install Graphviz

  • yes