Using ArgoUML Tool
Overview
ArgoUML is a Java based modelling tool that helps the user to design, develop and document object oriented applications. It can save most of the standard UML diagrams. It can reverse compilation of Java code and generate corresponding UML diagrams. It supports:
- Open standards- XMI, SVG and PGML
- 100% Java
- Open Source
ArgoUML Modelling Tool has the following features:
- Submenu items: The sub menu items enable the user to:
- create a new model under a new desk or a new module under the existing desk
- select a project from a list of existing ArgoUML projects and open model in ArgoUML Window
- choose from a list of desk modules to be modelled in ArgoUML
- choose from a list of existing ArgoUML projects for the current desk, generate source and add it to the selected desk module
- Show Model, Open Model and Generate Source options
- Save as option that enables the user to save the model created using New Model or Show Model option. It is added to the desk under the UML Models module
- The .zargo files can be opened at any time from the desk. A source can be generated for the model and added to a new module in the desk by using `Generate Source' option
- Multiple desks are not supported
- Modifications made to the existing classes in the model are not reflected in the source. A new source is generated for every new class added to the desk
- The tool is disabled when no desk is open
- An existing desk can be modelled
Working with ArgoUML in Studio
To start working with ArgoUML tool in Studio, go to <install_dir>/lib/pramati/umltoolkit.jar. It contains the following files:
- argouml.jar
- gef-0.9.6.jar
- log4j.jar
- Manifest.mf
- nsuml.jar
- ocl-argo.jar
- umlmodeltool.jar
- xerces.jar
Extract the files in umltoolkit.jar to lib\pramati directory of Studio installation directory or into a temporary folder in lib\pramati directory.
For more information on ArgoUML, visit http://www.argouml.org.
Using ArgoUML Modelling Tool
Creating a model, generating source and adding to desk
To create a new model, open an existing desk or create a new desk using Studio.
- Select Tools > ArgoUML > New Model to open a new project with a default template.
- Create the model in ArgoUML. For more information, go to http://www.argouml.org
- Select File > Save Project As to save the new model with zargo extension. Add the saved file to the desk under UML Models module.
- To generate source for a new model for example, Supply, create a module, orderApp and add the model, Supply to it.
- Right click on Supply.zargo and select Generate Source. The xmi file is extracted from Supply.zargo and parsed. The following panel displays model packages and desk modules:
- Map the packages to appropriate modules.
- Click Generate Source. A source is generated for the selected model and added to the chosen module.
- Select Compile and Build All Classes to compile the generated source. This is optional.
Creating a UML Model for a Desk Module
- Select ArgoUML > Show Model. The following panel enables the user to select the desk module to be modelled:
- Select the required module and click OK. This displays the model in the ArgoUML Window.
- Select File > Save Project from the ArgoUML file menu to save the project.
Opening an existing ArgoUML project from desk
- Open the required desk.
- Select Tools > ArgoUML > Open Model to open an existing model. The following panel enables the user to select from the available zargo files:
- Select the required zargo file. The model appears in the ArgoUML Window.
Note: The Generate Source option is also available at the menu bar Select Tools > ArgoUML > Generate Source. Open Model is also available as a Right clicking on a zargo file UML models module.