Thanks to Christian for this link...
Trigger Eclipse's code formatter programmatically from a new file wizard
If anybody needs help with a similar issue, let me know. It was straightforward in the end.
문제
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.
Thanks, Sean
해결책
Thanks to Christian for this link...
Trigger Eclipse's code formatter programmatically from a new file wizard
If anybody needs help with a similar issue, let me know. It was straightforward in the end.