(EN) UML support in NetBeans 5.5

English flag There is a new set of modules for UML Modeling available on NetBeans 5.5 Beta Update Center. They were uploaded yesterday and I was surprised what these modules provide. I think they are really valuable and hope users will appreciate their availability. I was really curious how do UML modules manage generation of Java code. For this purpose I just created new UML Java-platform project. Then designed Shape interface in 'Class Diagram' and class Circle. I then drew implementation arrow between them. All inherited methods appeared in the Circle class.
Class diagram
Finally I tried to generate code and here you can see the result for the Circle class. There are missing imports, but I fixed it by Ctrl+Shift+F shortcut in NetBeans editor.
Generated code
This kind of tool I really missed in NetBeans for long time and I am happy it is available for free. I am going to play with other diagram types (if I spare some time) and perhaps you will be able to read here my real experience with UML Modeling in NetBeans IDE 5.5. I have now created the first step - generated all available UML diagram types:
Diagram types
Comments:

hi, thanks, i'll check these out sometime. my biggest problem with the previous uml plugin was that there was no way of representing properties more concisely. in the example above, the uml shows an attribute called color and also a getColor() & setColor() method. the uml tool would be SO much more useful if it allowed you to show color as a (read/write) property. once you've got 10+ properties for a class, the attribute/operations display becomes very cumbersome & has stopped me from using this tool. thanks, lardy

Posted by lardy on únor 22, 2007 at 06:30 dop. CET #

Nice to see code generation from UML growing. It's the right approach. Visual modeling and writing only the logic. Thx for sharing

polarizers 2 cent

Posted by polarizer on únor 22, 2007 at 07:43 dop. CET #

Lardy, thanks for your comment. I have filed following enhancement based on your comment: http://www.netbeans.org/issues/show_bug.cgi?id=96410

Posted by Jara on únor 23, 2007 at 01:19 dop. CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

jara

Search

Archives
« duben 2014
PoÚtStČtSoNe
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today