Fixed bug which caused NullPointerExceptions when deleting entities.
Enabled drag&drop support from the palette
Generated source code.