UML generation using Dump

playerglobal.abc UML

Dump has now another cool feature: UML diagram generation. The UML diagram is exported in DOT format. I think this is a really cool feature because the graph is built by analyzing a SWF file and you get it for free. I will probably create a different tool to make full use of the UML generation since you could link multiple files together for a complete coverage. Since Graphviz is not able to underline text I have choosen to use a dollar sign for static methods. You will also get proper parameter names if you compile your SWF file in debug mode.

This is an example UML diagram for the playerglobal.swc. In order to create it I took the playerglobal.abc from the Tamarin sources and the command was java -jar dump.jar -input playerglobal.abc -uml.

Here are two example representations but be careful. The PNG size is 30831×6232 and might crash your browser. Chrome can display the PNG for me but is not able to show the SVG correct. Firefox displays the SVG very well. You can download the PNG and open it in IrfanView or Photoshop to be safe.

Related Posts

8 Responses to “UML generation using Dump”


  1. 1 Alex Peretti

    This is really great, works!
    Just for your information, OmniGraffle is a graphing app for Mac and handles .dot files great.

  2. 2 shaman4d

    Just WOW! One question how I can save as JPEG|PNG from dotty?

  3. 3 David Wilhelm

    This is working great, especially with OmniGraffle. Only thing is that I’m analyzing a Flex projects and so there’s a bazillion framework classes cluttering up everything.. is there away to include/exclude certain namespaces from the output ?

  4. 4 Boyajian

    This is totally cool, nice work Joa! Is there a way to specify where the output .dot file ends up and the name of the file, or are these not options that are available currently with dump?

  5. 5 joa

    Those options are not implemented yet.

  1. 1 Twitted by philipheyde
  2. 2 Twitter Trackbacks for UML generation using Dump at blog.joa-ebert.com – Blog of Joa Ebert [joa-ebert.com] on Topsy.com
  3. 3 » Day Two Marc Hibbins

Leave a Reply