The ULM.gen project is a framework that help building and customizing source-code generators from a UML model expressed as XML documents, using generation templates. It also provides tools for synchronization with UML modelers such as IBM Rational Rose.
Currently all the samples are included in the Noir release found at http://sf.net/projects/noir/. One graphical sample of interest, is a BMPloader that loads 24bit bitmaps, written on only one page in using the Noir Framework. Noir is Not Useless (NINU)