2014-02-17 62 views

回答

2

1)中的RubyMine

  • 安裝這個插件,去首選項 - >插件
  • 點擊瀏覽庫和搜索PlantUML
  • 選擇這個插件在列表中的權利和選擇在彈出菜單中下載並安裝
  • 重新啓動IDE

2)在命令行安裝的libtool和graphviz的

釀造安裝的libtool

釀造安裝graphviz的

3)打開一些紅寶石文件並添加此代碼爲一個測試 (使用塊註釋從ruby翻譯程序隔離UML圖表= begin = end

=begin 
@startuml 
testdot 
@enduml 
=end 

4)進入菜單查看 - >工具窗口 - > PlantUML

應該顯示

The environment variable GRAPHVIZ_DOT has not been set 
Dot executable is /usr/local/bin/dot 
Dot version: ... 
Installation seems OK. File generation OK 

從官方website

=begin 
@startuml 
:First Actor: 
    :Another actor: as Men2 
actor Men3 
actor :Last actor: as Men4 
@enduml 
=end