31

Android StudioWhat is the best tool for generating UML diagrams from Java source files in Android Studio? Are there any plugins similar to ObjectAid in Android Studio.

There is no Visual Paradigm EE shown as described http://www.visual-paradigm.com/support/documents/vpuserguide/2381/2385/66578_creatingauml.html

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Ranjana Dangol
  • 1,319
  • 2
  • 13
  • 24
  • possible duplicate of [How to generate Class Diagram (UML) on android studio](http://stackoverflow.com/questions/17123384/how-to-generate-class-diagram-uml-on-android-studio) – Krishnabhadra Feb 09 '15 at 11:30
  • # **SOLUTION HERE:** # http://stackoverflow.com/questions/17123384/how-to-generate-class-diagram-uml-on-android-studio/29475203#29475203 – ceph3us Apr 06 '15 at 16:27
  • I think this can help you. It helped for me http://stackoverflow.com/questions/17123384/how-to-generate-class-diagram-uml-on-android-studio –  Jun 01 '16 at 11:58

3 Answers3

47

Try Code Iris. You can install it in Android Studio as a plugin.

Open Android Studio Settings: File -> Settings. Look for Plugins, then hit "Browse repositories..." and type "Code Iris". Install and restart your IDE.

There is another plugin that could be interesting too, which is PlantUML. You may need to install Graphviz in order to make it work.

  • Code Iris allows to export your diagram into a json file.
  • PlantUML allows to save your diagram as a PNG file.

Hope it helps.

AJoe16
  • 726
  • 6
  • 10
7

Two things you need to understand.

  1. You need to first install VP and then the plugin, for this to work.
  2. VP is tricking you to think it's available in the CE edition, when in fact it is not. They state at some point that this feature is only available for the Standard Edition and above. So the name of the plugin is tricking you into this. Thus you're limited to a 30 day trial.

They say:

...Visual Paradigm Community Edition supports running inside Eclipse, NetBeans, IntelliJ and Visual Studio. Without leaving your IDE, you can review your software design described in UML.

To install the plug-in:

The proper path to go is from the File item, go to Settings. Then in the new settings window, scroll down (left side) to Plugins. Click on it and the Plugins menu (sub-window) will open. At the bottom of that there is a button called Browse repositories.... Click on it, and there will be yet another window (phuh!) with a very long list of plugins. There are hundreds, so use the search bar in that window and type "Visual Paradigm", this will give you only one choice, the "Visual Paradigm SDE for IntelliJ IDEA (Community Edition)". Click on it and then again on the right side, on the green button that says Install plugin. Accept the install and then restart AS.

To use the native windows app:

To create an UML from reversing the Java code in VP, look at this post.

Community
  • 1
  • 1
not2qubit
  • 14,531
  • 8
  • 95
  • 135
  • I had followed the above steps but couldnot find any method to create a uml diagram of the project inside AS. Can you describe me what can i do after i restart AS?? Thanks in advance – Ranjana Dangol Feb 20 '15 at 14:45
  • That's a good question. Since I don't have that edition, it never shows up in my AS either, but I can create diagrams in VP. So I can only conclude it's some kind of marketing trick by VP. – not2qubit Feb 20 '15 at 17:30
  • Visual Paradigm community edition won't allow you to generate a diagram from existing Java code, which is what many of us want to get. – Dale May 23 '16 at 16:24
0

For creating UML class diagram in android studio use the following steps : Press Ctrl+Alt+S (or go to Settings), then go to the Plugins tab, press "Browse repositories" button then search "Visual Paradigm SDE for intelliJ" install this plugin into Android Studio and restart the IDE.

After successfully install the above plugin follow the step which are listed on following URL: http://www.visual-paradigm.com/support/documents/vpuserguide/2381/2385/66578_creatingauml.html