This plugin generates code from right click 'Generate...' menu while focused on a java/scala class. The output class can be customized using a provided velocity template to format the code based on the origin class and optional selected classes.
The following features are available:
If you want to add variables into template context, you can modified the source and package the plugin to meet your needs. See README