문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top