使用 Xtext 生成 Java 导入的最佳列表

发布于 2024-10-18 17:41:54 字数 59 浏览 3 评论 0原文

有没有办法在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哽咽笑 2024-10-25 17:41:54

是的。我们在域模型示例中这样做。您可以使用向导将该示例导入到您的工作区中。

Yes. We do that in the domain model example. You can import the example into your workspace using the wizard.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文