Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top