24

This seemed to me like the easiest thing to find, a simple way to display my classes as UML in eclipse

But except this: http://java2uml.gforge.enseeiht.fr/ and this http://sourceforge.jp/projects/amateras/releases/ I haven't found any new, maintained and "good" implementation (with all due respect to the above two)

Anything else I've missed?

Eran Medan
  • 44,555
  • 61
  • 184
  • 276
  • 2
    Look in eclipse plugin central. There are MANY UML editors there, and quite a few with round-trip model-code-model support for Java. – David Rodríguez - dribeas Feb 16 '10 at 12:01
  • Yes, but which one? :) there are so many! the reason I've asked it here is to get a name of a mature plugin that was used widely – Eran Medan Feb 16 '10 at 13:55
  • @EranMedan Did you find a tool to generate diagrams for code you've written? The tools listed below seem to be focused on generating UML diagrams from scratch and then generating code from the diagrams. I want the converse, which I believe is what you were looking for. – MrMas Apr 24 '13 at 15:58
  • 1
    @MrMas to tell you the truth, I don't really remember if I found something or not, I simply ended up not using UML much unless needed by someone non technical, I found that writing class / interface stubs in code is good enough for peer developers when talking about design, writing an interface is faster, reusable, and readable, and I can change it fast without being dependent on an IDE or a plugin – Eran Medan Apr 24 '13 at 20:03
  • You could try ModelGoon. I just installed it from the Eclipse Marketplace and it works pretty well. – Andrei Jul 04 '18 at 14:08

4 Answers4

11

Did you consider

Creating UML 2 diagrams with Eclipse UML2 Tools - Tutorial ?

I had older references for such tools, but the new ones are build upon UML2 project (described in the tutorial). MDT-UML2Tools is in the making, Omondo is there, but not free.
Papyrus UML, for instance, is based on UML2 Tool.

There is a tool in the Marketplace that can do the above (UML Class, Package and Interaction). It's called ModelGoon. Last tried in July 2018.

The full list is available at Eclipse marketplace.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • @VonC - I haven't found how to generate a Class Diagram based on existing classes, maybe I'm missing something, but that is not mentioned in the tutorial, and I haven't found how to do it after downloading and installing successfully the plugin – Eran Medan Feb 16 '10 at 14:14
  • 1
    @Ehrann: if you are talking about Papyrus, the closest tutorial would be javascript:openWin('_popup','/home/liblocal/docs/Documentation/Java-Code-Gen/Papyrus-GenJava-Synchro-src2mdl.swf','1221','909','yes'). – VonC Feb 16 '10 at 14:36
  • thanks, I ment the Creating UML 2 diagrams with Eclipse UML2 Tools - Tutorial. but I'll check Papyrus UML as well – Eran Medan Feb 18 '10 at 07:21
  • Tutorial has moved to https://www.vogella.com/tutorials/UML/article.html – Corporativo Mar 30 '21 at 06:25
  • @Corporativo Thank you. I have edited and updated the answer accordinlgy. – VonC Mar 30 '21 at 07:11
10

If you want to stay within Eclipse: use free ObjectAid - discovers parents, nestings, associations.
If you want the tool, which in addition discovers and show children, usages, dependencies, annotations - then use free Class Visualizer.

Jonatan Kaźmierczak
  • 1,821
  • 2
  • 15
  • 9
  • 3
    Jonatan, as an act of courtesy one could/should add a disclaimer to the answer when suggesting products, services etc one is involved in. This said, your Class Visualizer is definitely good. Thanks for it. – SantiBailors Apr 05 '15 at 12:46
  • I don't think ObjectAid is free. Doesn't it have an evaluation license that expires in 2 days or something? – JGFMK Jun 04 '20 at 19:10
3

I generally use Doxygen to create documentation because it has built-in support to generate inheritance diagrams. There is an Eclipse plug-in for Doxygen called eclox. It is not longer maintained since December 1st.

Doxygen is based on Graphviz. You could directly use LightUML, which is based on Graphviz to create UML diagrams in Eclipse.

rochb
  • 2,249
  • 18
  • 26
0

Annotate your classes with Ecore's annotations, then you can import an Ecore file from them. You can initialize an Ecore diagram from them, or export it to UML, and initialize a class diagram from it.

thSoft
  • 21,755
  • 5
  • 88
  • 103