我有一个 Roo 项目,我在其中创建了几个实体,当我在 Eclipse 中加载该项目时,它加载正常,但是如果我创建一个实例 MyEntity entity
然后写入 entity.
我没有在自动完成列表中获得任何属性(即 getMyField)。如果我编写 entity.getMyField()
它编译得很好,这是由方面处理的。如何为方面生成的函数启用自动完成?
干杯
尼克
最佳答案
您使用的是哪种“类型”的 eclipse ?你的 Eclipse 中安装了 AJDT 吗?如果是这样,仍然可以选择禁用 JDT 编织。下面的注释(摘自 Roo 文档)应该可以帮助您打开 JDT 编织(窗口 -> 首选项 > JDT 编织。
When using AJDT you may be prompted whether to enable weaving of the JDT. You should select to enable weaving so as to ensure the Java Editor in Eclipse (or STS) gives the best AspectJ-based experience. You can also verify this setting is active by loading Eclipse (or STS) and selecting Window > Preferences > JDT Weaving.
顺便问一下,您是否考虑过试用 Spring Source Tool Suite?在那里你会发现所有的插件(AJDT 支持......)已经安装。它非常适合 Roo,因为它在 eclipse 中提供了 Roo 功能。
关于java - Roo 项目在 Eclipse 中的自动完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2583812/