Download:
Installation Instructions:- Extract the contents of the archive into your Netbeans installation directory.
- In your Netbeans directory you should now have a folder called UML.
- Restart or open Netbeans.
- To verify its working, try to create a new project. In the list of project types, there should be the option to create a UML project. If you have that option, then it is all working!
Usage:
- Open an existing Netbeans project.
- In the projects pane, right click on the project your working on and click Reverse Engineer.
- You will be presented with a window on what to reverse engineer. Choose only the source files and tell it to create a new UML project for you.
- It will tick away for a little while, then you should now have a new UML project in the projects pane on the left.
- The UML project should now be full of all the components your using.
- Expand your UML project, then expand the Model.
- You should have folders for each package thats in the Netbeans project you generated from. Example, I had one package called assign2, so i had one folder called assign2 in the UML project. Plus several other files that arent important.
- Right click this folder and choose Create Diagram From Selected Elements.
- Choose to create a Class Diagram, and push Finish.
- You might be prompted with a message saying: The selected element has one or more scoped elements. Do you want to include the scope elements on the diagram in addition to the selected element?
- Click Yes.
- You should now have a completed UML class diagram.
Notes:
- The modeler does a good job of presenting the data, however it tends to push it to the right side of the window. Which wastes a lot of printing room. The only way i found to fix this, was to move every element manually to the middle. It seems the middle is the best place for printing.
- I also couldn’t find a way to save the UML diagram as an image or a pdf. So I used Cute PDF Writer to do the job!
ไม่มีความคิดเห็น:
แสดงความคิดเห็น