Personal tools
You are here: Home Products ArchGenXML Documentation How-tos Setting up ArgoUML to provide tagged values and stereotypes in a dropdown menu
Document Actions

Setting up ArgoUML to provide tagged values and stereotypes in a dropdown menu

Warning: This item is marked as outdated.

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

ArgoUML supports the ability to load a "definition" file with predefined tagged values and stereotypes. This makes it possible to have all the custom tagged values and stereotypes used by a Plone project available in dropdown menus within ArgoUML.

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.
by David Bain last modified May 12, 2006 - 11:05

Thank you!

Posted by Steve K. at July 7, 2006 - 03:56

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

This is very helpful, here's my windows batch file mod

Posted by bobb at July 23, 2006 - 02:07

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

Posted by Pander at August 2, 2006 - 11:30

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

Posted by Tom Hallam at July 7, 2008 - 06:27
All the images are missing as if referred to the now deleted previous AchGenXML reference manual

Values that are not in the list

Posted by Andre Brown at November 11, 2006 - 03:15
How do you add values that are not in the list? For example, I am using the DataGridField product and need to add tags that are specific to this product.

Click on the Tag Definition (next to garbage can)

Posted by bobb at November 25, 2006 - 20:37
you'll then have an anon tag value. You can then edit that, and it appears in your list. Based on my profile's date / time stamp, it looks like it stays in the zargo file, not in the profile (but it's just a guess).

What about eclipse?

Posted by Mehmet Yilmaz at November 15, 2006 - 23:56
Tigris release ArgoEclipse. Any ideas for doing this in ArgoEclipse?

Argo startup command on OS X

Posted by David Siedband at March 23, 2007 - 20:32
On OS X (10.4) j2re doesn't seem to be here:
/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

Posted by Tom Hallam at July 3, 2008 - 07:46
I've not been able to get this to work for ArgoUML 2.5

Woops - wrong version

Posted by Tom Hallam at July 3, 2008 - 07:50
I meant 0.25.5

any new version ArchGenXMLprofile.xmi

Posted by Nada Machkova at July 18, 2008 - 10:43
PLEASE is there any new version of 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

Posted by Nada Machkova at July 18, 2008 - 11:02
oh it works :-)
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 :-)

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by