netbeans uml installer

Upload: pham-anh-tai

Post on 04-Jun-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 Netbeans Uml Installer

    1/10

    Sayed Muchallil CSE 5324

    How to Use Netbeans UML Tools

    1. I assume the machine have installed this software : a. JDK 6 Update 18 (also work for other JDK 6 or 5).

    b. Netbeans 6.5.1.

    2. Run Netbeans.

    3. Select tools >plugins from menu

    4. When plugins dialog box appear, select available plugins tab, then type uml in search text box (A) A

    PART I . UML Tools Installation

  • 8/13/2019 Netbeans Uml Installer

    2/10

    Sayed Muchallil CSE 5324

    5. Check UML in the catalog, and Click install button.

    6. When Netbeans IDE plugins installer dialog box appear press Next button.

  • 8/13/2019 Netbeans Uml Installer

    3/10

    Sayed Muchallil CSE 5324

    7. Accept the License Agreement, and press Install Button

    8. Wait until installation process finished. When Netbeans notifies you the installation process for

    UML done. Press Finish button.

  • 8/13/2019 Netbeans Uml Installer

    4/10

    Sayed Muchallil CSE 5324

    1. To create a UML diagram, choose File>new project. When new project dialog appears, click on UML on the right side and Java Platform Model on the left side. Then press Next button.

    2. Give a project Name, and then choose what diagram you want to create. In this example I use

    WeatherForecast as my project Name and use case diagram as my first diagram.

    PART II Code Generation

  • 8/13/2019 Netbeans Uml Installer

    5/10

    Sayed Muchallil CSE 5324

    3. In the project window, you will see the project Name, and your diagram. To create other

    diagrams, right click on the diagrams in the project window, choose new >diagram.

    4. This time, we choose Class Diagram.

    5. Draw your diagram.

  • 8/13/2019 Netbeans Uml Installer

    6/10

    Sayed Muchallil CSE 5324

    6. After drawing your diagram, you can generate code from the diagram by choosing generate

    code in menu that appears after right click at the model project name. But to do so, you have to

    have at least one active project in the project window. If you do not have, just create a new project from menu, file>new Project. Chose java on the left side and java application on the

    right side.

    7. Give project Name WeatherForecastApplication

  • 8/13/2019 Netbeans Uml Installer

    7/10

    Sayed Muchallil CSE 5324

    8. Now we can generate code from the model.

    9. Choose project Name where you want the code to be saved.

  • 8/13/2019 Netbeans Uml Installer

    8/10

    Sayed Muchallil CSE 5324

    10. Finally, you can see the WeatherForecastApplication has been added two classes from the class

    diagram, Now.java and Forecast.java created automatically from the class diagram.

  • 8/13/2019 Netbeans Uml Installer

    9/10

    Sayed Muchallil CSE 5324

    1. To create class diagram from the code. Just right click from the project name and choose reverse engineer .

    PART III Reverse Engineering

  • 8/13/2019 Netbeans Uml Installer

    10/10

    Sayed Muchallil CSE 5324

    2. When Reverse Engineer dialog appears, you should uncheck the test package folder, because

    you do not save your source code there. And then press OK button because your UML project

    name will be given automatically. You can change it if you want.

    3. Now you can open the UML project name. There is no diagram yet but you can add new

    diagram. And just drag and drop class from models.