Setting up ArgoUML to provide tagged values and stereotypes in a dropdown menu
This How-to applies to: 1.4.1, 1.4.0, 1.5.0, 1.1, 1.2-beta1, 1.4.0-beta1, 1.4.0-beta2, 1.4.0-RC1, 1.4.0-RC2
Background and Notes
The screenshot below shows ArgoUML with the custom tags from the definition file. Having many of the possible options available from a menu has the following benefits:
- saves time - sometimes clicking is faster than typing
- reduces errors - no more mispelled tags
- presents a learning opportunity - seeing new tags and stereotypes provides a springboard for further investigation

This
walks you through how I setup ArgoUML on my Ubuntu Breezy (Linux)
desktop system. The methodology should be easily adjusted to other
platforms.
Assumptions
These are my assumptions:
- You already have java (sun j2re 1.5) installed
Getting ArgoUML and the definition file
At the time of this writing the version I used was 0.20.
Download and unpack the file from tigris.org
wget http://argouml-downloads.tigris.org/nonav/argouml-0.20/ArgoUML-0.20.tar.gz
sudo mkdir /usr/local/ArgoUML && sudo tar xvfz ArgoUML-0.20.tar.gz -C /usr/local/ArgoUML
In the new '/usr/local/ArgoUML' directory download the definition file
cd /usr/local/ArgoUML
sudo wget http://plone.org/products/archgenxml/issues/30/18/at_download/attachment
sudo mv attachment ArchGenXMLprofile.xmi
Launching ArgoUML with definition file
To launch the file I go to the '/usr/local/ArgoUML' directory and run the command shown below
cd /usr/local/ArgoUML
/usr/lib/j2re1.5-sun/bin/java -Dargo.defaultModel=ArchGenXMLprofile.xmi -jar argouml-mdr.jar
You may need to change the location of your java.
These are the raw instructions and can be refined with a launch script etc....
Why ArgoUML?
Just a few notes on why I'm using ArgoUML.
- Mature - it supports the important stuff (at least as far as ArchGenXML goes), state diagrams, tagged-values, stereotypes.
- It is pretty lightweight, which is important when your laptop only has 256 MB of RAM and a PIII 700 Mhz processor. Poseidon Community Edition, though nice, is just too memory hungry.
- Price is good (free) :)
I'm keeping my eye on the python based UML editor Gaphor but it doesn't do everything I need yet.
This is very helpful, here's my windows batch file mod
I changed %_JAVACMD% %ARGOUML_OPTS% -jar "%ARGO_HOME%argouml-mdr.jar" % to %_JAVACMD% -Dargo.defaultModel=ArchGenXMLprofile.xmi -jar %ARGO_HOME%argouml-mdr.jar" %
In my batch file. Note that the xmi file that is downloaded above has to be renamed to fit the howto to "archGenXMLprofile.xmi" from "argouml_profile.xmi"... or just specify argouml_profile.xmi in the above change. You could probably pass this from the command line directly into the old batch file if you cared enough. I suppose that if you had other options in the command file, you'd have to play with the %ARGO_OPT% param also.
Thank you David!!!
Also try this ArgoUML customisation
Also try this ArgoUML customisation
http://plone.org/products/archgenxml/documentation/how-to/using-argouml-model-with-archgenxml-data-types-stereotypes-and-tagged-values
There are also ArchGenXML only basic types available.
Images Missing
Values that are not in the list
Click on the Tag Definition (next to garbage can)
What about eclipse?
Argo startup command on OS X
/usr/lib/j2re1.5-sun/bin/java
but java is at:
/usr/bin/java
So, the full command I use to start Argo with the AGX profile is:
/usr/bin/java -Dargo.defaultModel=argouml_profile.xmi -jar argouml-mdr.jar
This needs to be invoked from: /usr/local/ArgoUML
ArgoUML 2.5
any new version ArchGenXMLprofile.xmi
i tried the above steps with
Python-2.4 + Plone-3.1 + ArgoUML-0.24
but without success :-(
any new version ArchGenXMLprofile.xmi
java -Dargo.defaultModel=ArchGenXMLprofile.xmi -jar argouml.jar
with
ArgoUML-0.24 + sun-java5-jre (1.5.0-14-1 debian etch1)
but
still want to know about new ArchGenXMLprofile.xmi, compatibility etc.
MANY thanks for nice tools :-)
Thank you!
I'm learning how to use ArchGenXML to create some custom content types, and this is very helpful to be able to see all the stereotypes, tagged values, etc. in ArgoUML. Using these preloaded dropdown menus in tandem with the ArchGenXML Getting Started tutorial (http://plone.org/documentation/tutorial/archgenxml-getting-started/tutorial-all-pages) is a great way to learn this stuff quickly