How to generate Class Diagram (UML) on Android Studio (IntelliJ Idea)(如何在 Android Studio 上生成类图 (UML) (IntelliJ Idea))
问题描述
我尝试搜索并找到了这个链接,但是Ctrl+Alt+Shift+D 不起作用.
I've try to search and found this link, but Ctrl+Alt+Shift+D doesn't work.
我还使用 find Action Ctrl+Shift+A 来查找有关图表和 uml 的操作,但一无所获.
I also use find Action Ctrl+Shift+A to find action about diagram and uml but found nothing.
我也搜索uml插件,但他们中的大多数都不适用于新版本的 intelliJ(我没有尝试过,我只是看了评论).
I also search for the uml plugin, but most of them didn't work with new version of intelliJ (I didn't try it I just read the comment).
推荐答案
我找到了一个可以用android studio生成类图的免费插件.它被称为 SimpleUML.
I found a free plugin that can generate class diagrams with android studio. It's called SimpleUML.
更新 Android Studio 2.2+:要安装插件,请按照以下答案中的步骤操作:https://stackoverflow.com/a/36823007/1245894
Update Android Studio 2.2+: To install the plugin, follow steps in this answer: https://stackoverflow.com/a/36823007/1245894
旧版 Android Studio在 Mac 上:转到 Android Studio
-> Preferences
-> Plugins
Older version of Android Studio
On Mac: go to Android Studio
-> Preferences
-> Plugins
在 Windows 上:转到 Android Studio
-> File
-> Settings
-> Plugins
On Windows: go to Android Studio
-> File
-> Settings
-> Plugins
点击 Browse repositories...
并搜索 SimpleUMLCE(CE的意思是Community Edition,这是android studio的基础).
Click on Browse repositories...
and search for SimpleUMLCE
(CE means Community Edition, this is what android studio is based on).
安装它,重新启动,然后你可以在包含你想要可视化的类的文件夹上右键单击,然后选择添加到simpleUML Diagram
.
Install it, restart, then you can do a right click on the folder containing the classes you want to visualize, and select Add to simpleUML Diagram
.
就是这样;你有你喜欢的从你的代码生成的类图!
That's it; you have you fancy class diagram generated from your code!
这篇关于如何在 Android Studio 上生成类图 (UML) (IntelliJ Idea)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 Android Studio 上生成类图 (UML) (IntelliJ Idea)


基础教程推荐
- iOS4 创建后台定时器 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01