.JARa's Bilingual Weblog

Life's better with NetBeans
photo of Jara

(EN) UML support in NetBeans 5.5 ( 20070222 Čtvrtek únor 22, 2007 )
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
Posted by jara ( II 22 2007, 10:50:12 dop. CET ) Permalink Comments [3]
(CS) Podpora UML v NetBeans 5.5 ( 20070222 Čtvrtek únor 22, 2007 )
Czech flag NetBeans 5.5 Beta Update Center obsahuje novou sadu modulů pro UML modelování. Byly uploadovány včera a byl jsem překvapený, co vše tyto moduly poskytují. Myslím, že jsou hodnotné a snad jejich dostupnost ocení i uživatelé. Byl jsem přímo zvědavý jak si UML moduly poradí s generováním Java kódu. Pro tyto účely jsem si vytvořil nový UML Java-platform projekt. Pak jsem vyrobil Shape interface v 'Class Diagramu' a class Circle. Ty jsem pak jen propojil implementační šipkou. Všechny zděděné metody se korektně objevily v Circle class.
Class diagram
Nakonec jsem jen vyzkoušel vygenerovat kód a na vysledek pro třídu Circle se můžete podívat.Chybí u ní sice importy, ale to se dá jednoduše opravit pomocí Ctrl+Shift+F shortcutu v NetBeans editoru.
Generated code
Tento typ nástroje mi v NetBeans po dlouhou dobu chyběl a jsem rád, že je zdarma dostupný. Chystám se vyzkoušet další typy diagramů (až naspořím nějaký čas) a snad se o mých dalších zkušenostech s UML Modelováním v NetBeans IDE 5.5 dočteteand na tomto blogu. První krok už jsem udělal - vygeneroval jsem si všechny dostupné typy UML diagramů:
Diagram types
Posted by jara ( II 22 2007, 10:50:06 dop. CET ) Permalink Comments [1]


Archives
Search
Contact
Links
Visits map
Referrers

   Disclaimer: This blog contains my own opinions which may differ from viewpoints of Sun Microsystems.