(White)StarUML extensions for Pharo
First install the free WhitestarUML UML tool on your local Windows machine.
We recommend to install it into the following folder
c:\astares\tools\WhiteStarUML
as you can use other Astares tools then afterwards from this location.
Just clone or copy the contents of this github project into the module folder of the WhiteStarUML installation. With this you should end up with a
C:\astares\tools\WhiteStarUML\modules\staruml-pharo
folder
When you create a new WhiteStarUML project by approach you will find a "Pharo Approach" in the New Project by Approach wizard:
Within such a project you can add a "Pharo class diagram" easily to your model:
If you already have an existing UML project you can add the Pharo profile afterwards using Model -> Profiles... :
Just include the provided Pharo profile.
There is a small utility package included in this project within the src folder. It is written in Pharo itself to generate a file in XDP Format.
Metacello new
repository: 'github://astares-nucleus/staruml-pharo/src';
baseline: 'XPDExporter';
load
The utility allows you to generate the Pharo class hierarchy of an existing image into a model file and use it as a Unit file within WhiteStarUML.
To export just evaluate
XPDFile new write
This generates the XDP XML structure and copies the result into the Clipboard. Just save the generated contents as WhiteStar UML unit control file (a file with a *.unt extension) and use it within the UML tool to browse and model based on Pharo classes: