12

Can anyone help me? I am currently using Eclipse Java IDE, and would like a plug-in that will automatically look at my classes and draw up a class diagram in UML.

Any suggestions?

informatik01
  • 16,038
  • 10
  • 74
  • 104
KP65
  • 13,315
  • 13
  • 45
  • 46

10 Answers10

19

I recommend the ObjectAid UML plugin. It works very nicely.

Dean Povey
  • 9,256
  • 1
  • 41
  • 52
  • Hi, I installed this tool, got it working etc, but can you get it to sort of draw up everything automatically like assosiations and what not? – KP65 Apr 10 '10 at 12:53
  • 4
    Once you create your diagram (New > Other > ObjectAID UML Diagram), then right click to add the classes you want to show. Then select all and right click to add relationships. – Dean Povey Apr 14 '10 at 04:20
  • 1
    how to export the diagram as image? – newbie Feb 02 '14 at 10:33
  • No, but you can evaluate it before purchase. http://www.objectaid.com/install-license – Khanna111 Apr 24 '17 at 19:36
  • This is not a freeware and the license expires in 2 days. – Vishrant Apr 27 '18 at 19:38
  • not able to add any class. it just shows blank canvas. neither with new wizard nor with add java classifier. Using eclipse neon and having license – parul Jul 23 '18 at 12:22
4

The challenge in what you are trying to do is that you can have multiple correct UML diagrams for any piece of code. Just trying to automatically get a diagram ends up with too much garbage when using most UML tools - and the tools just end up getting in the way.

We created Architexa to help in this situation - Architexa helps you to get to useful diagrams fast - if that means connecting to source code commits or even building layered architectural diagrams. A good discussion on some of the things that you might be looking for can be found here.

Community
  • 1
  • 1
sethrq
  • 346
  • 1
  • 3
  • 7
2

Try UML2 from Eclipse Modeling Tools. Here's also a tutorial.

Bozhidar Batsov
  • 55,802
  • 13
  • 100
  • 117
1

Even if a bit too late for the original questioner, maybe following eclipse plugin does match the need of real time analysis:

http://marketplace.eclipse.org/content/javadoc-uml-view

This tool is highly intended for analysis purposes and less for diagram modeling. So if you want to draw diagrams manually its not the right one, in this case ObjectAid UML explorer is far better.

Just to be mentioned :-)

Omnaest
  • 3,096
  • 1
  • 19
  • 18
1

One more option: http://www.modelgoon.org/

It's a very simple one, but it's still an active project.

Gilberto Olimpio
  • 681
  • 14
  • 23
0

You may try architexa tool suite. It generates not only class/sequence diagrams but also layered diagrams. You may read about it here.

Arnab Biswas
  • 4,495
  • 3
  • 42
  • 60
0

Try using Omondo. Its a very nice UML plugin for eclipse. It will exactly suit your needs

bragboy
  • 34,892
  • 30
  • 114
  • 171
  • @Bragaadeesh: Doesn't seem to be free though (???) – Yaneeve Apr 08 '10 at 14:05
  • It is not free but you have a 90 days license in the latest SR2 build. Plenty of time to finish your project. No nagscreen, no tag in the code, the uml model is standard and could therefore be open by any tool. Only the graphical editor is under the 90 days evaluation. So not so bad :-) – UML GURU Apr 09 '10 at 09:53
0

I would try MoDisco http://www.eclipse.org/gmt/modisco/. It is an extensible framework for software modernization.

Jordi Cabot
  • 8,058
  • 2
  • 33
  • 39
  • I didn't find a straightforward way to generate a UML diagram out of the code of a project with MoDisco. – ovdsrn Oct 20 '11 at 13:49
  • MoDisco uses an intermediate Java model to avoid losing any information when going from the code to the model. There is a predefined transformation to go from this Java model to a UML class diagram showing the classes. Maybe you could ask in the Modisco forum for pointers – Jordi Cabot Oct 20 '11 at 19:00
  • 1
    So there isn't a straightforward way :). Thanks anyway for the suggestion – ovdsrn Oct 24 '11 at 15:45
0

Check this out, this designer is free (Open Source with EPL license).

UML Designer which can be used for:

  • Package Hierarchy
  • Class Diagam
  • Component Diagram
  • Composite Structure Diagram
  • Deployment Diagram
  • Use Case Diagram
  • Activity Diagram
  • State Machine
  • Sequence Diagram
  • Profile Diagram

Got good tutorial as well:

http://www.umldesigner.org/tutorials/tuto-getting-started.html

Vishrant
  • 15,456
  • 11
  • 71
  • 120
-1

If you can move to IntelliJ they have a wonderful plugin for that.

If you're "stuck" with eclipse... AmaterasUML is good enough - I've used it in the past...

Yaneeve
  • 4,751
  • 10
  • 49
  • 87