I would like to be able to call my XText code formatter from a function. I will be calling this as part of my code generator, and possibly from elsewhere. I believe this solution will be generic for any language in Eclipse, not just those implemented with XText.
I have searched for a solution on SO, but have been unsuccessful.
Any suggestions/a point in the right direction would be helpful.