StateXMI2Java
StateXMI2Java is a Java code generator which can generate code from statemachine diagrams in XMI files.
Only tested / working with XMI files exported from Visual Paradigm right now.
Works with XMI v2.1 files.
Download
Screenshots

Screenshot of StateXMI2Java Wizard page 1: Selection of source XMI file and target folder

Screenshot of StateXMI2Java Wizard page 2: statemachine selection

Screenshot of StateXMI2Java Wizard page 3: Generation complete!
UML Models – Design

Simplified UML class diagram of generated code.