Diagram kelas merupakan kumpulan kelas-kelas objek. Oleh karena itu pengertian kelas sangat penting sebelum merancang diagram kelas. (Whitten,2004: 400) mengartikan kelas sebagai satu set objek yang memiliki atribut dan perilaku yang sama. Kelas kadang-kadang disebut kelas objek (object class).
What is a good Eclipse plugin for generating a class diagram (for a project)?
This image right here is exactly what I'm talking about.
Ricardo1,6761 gold badge18 silver badges35 bronze badges
user238033
closed as off-topic by awksp, l4mpi, Qantas 94 Heavy, CRABOLO, John DvorakJul 21 '14 at 5:40
This question appears to be off-topic. The users who voted to close gave this specific reason:
- 'Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.' – awksp, l4mpi, Qantas 94 Heavy, CRABOLO, John Dvorak
4 Answers
Assuming that you meant to state 'Class Diagram' instead of 'Project Hierarchy', I've used the following Eclipse plug-ins to generate Class Diagrams at various points in my professional career:
- ObjectAid. My current preference.
- EclipseUML from Omondo. Only commercial versions appear to be available right now. The class diagram in your question, is most likely generated by this plugin.
Obligatory links
The listed tools will not generate class diagrams from source code, or atleast when I used them quite a few years back. You can use them to handcraft class diagrams though.
- UMLet. I used this several years back. Appears to be in use, going by the comments in the Eclipse marketplace.
- Violet. This supports creation of other types of UML diagrams in addition to class diagrams.
Related questions on StackOverflow
Except for ObjectAid and a few other mentions, most of the Eclipse plug-ins mentioned in the listed questions may no longer be available, or would work only against older versions of Eclipse.
Community♦
Vineet ReynoldsVineet Reynolds67.2k16 gold badges133 silver badges170 bronze badges
Must it be an Eclipse plug-in? I use doxygen, just supply your code folder, it handles the rest.
Taxi Noi Bai Ha NoiTaxi Noi Bai Ha Noi3,34614 gold badges53 silver badges110 bronze badges
Try Amateras. It is a very good plugin for generating UML diagrams including class diagram.
nIKUNJnIKUNJ3,1072 gold badges16 silver badges19 bronze badges
Try eUML2. its a single click generator no need to drag n drop.
digitebsdigitebs
I am modeling a class diagram. An attribute of a class is an enumeration. How do I model this? Normally you do something like this:
But how does one do this with an enum?
Pmpr10.5k8 gold badges52 silver badges75 bronze badges
MartijnMartijn11.4k51 gold badges148 silver badges233 bronze badges
3 Answers
They are simply showed like this:
And then just have an association between that and your class.
James BJames B6,5013 gold badges28 silver badges40 bronze badges
If your UML modeling tool has support for specifying an Enumeration, you should use that. It will likely be easier to do and it will give your model stronger semantics. Visually the result will be very similar to a Class with an
<<enumeration>>
Stereotype, but in the UML metamodel, an Enumeration is actually a separate (meta)type.Once it is defined, you can use it as the type of an Attribute just like you would a Datatype or the name one of your own Classes.
If you're using ArgoEclipse or ArgoUML, there's a pulldown menu on the toolbar which selects among Datatype, Enumeration, Signal, etc that will allow you to create your own Enumerations. The compartment that normally contains Attributes can then be populated with EnumerationLiterals for the values of your enumeration.
Here's a picture of a slightly different example in ArgoUML:
Tom MorrisTom Morris
Typically you model the enum itself as a class with the
enum
stereotypeannakataannakata
64.4k15 gold badges104 silver badges176 bronze badges