Generating optimal list of Java imports with Xtext
Question
Is there a way to collect a list of necessary imports while Xtext generates Java code and then insert this list at the top after processing the model?
Solution
Yes. We do that in the domain model example. You can import the example into your workspace using the wizard.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow