使用 Xtext 生成 Java 导入的最佳列表
有没有办法在 Xtext 生成 Java 代码时收集必要的导入列表,然后在处理模型后将此列表插入到顶部?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。我们在域模型示例中这样做。您可以使用向导将该示例导入到您的工作区中。
Yes. We do that in the domain model example. You can import the example into your workspace using the wizard.