在Eclipse中为Roo项目自动完成 [英] Autocompletion in Eclipse for Roo project

查看:166
本文介绍了在Eclipse中为Roo项目自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Roo项目,我已经制作了几个实体,当我在Eclipse中加载项目时,它加载得很好,但是如果我做一个实例 MyEntity实体然后写 entity。我没有在自动完成列表中获得任何属性(即getMyField)。如果我写 entity.getMyField()它编译正常,由方面处理。如何为方面生成的函数启用自动完成功能?

I've got a Roo project where I've made a couple of entities, and when I load up the project in Eclipse it loads up fine, but if I i.e. make an instance MyEntity entity and then write entity. I don't get any of my properties (i.e. getMyField) in the autocompletion list. If I write entity.getMyField() it compiles fine, that is taken care of by the aspects. How do I enable autocompletion for functions generated by the aspects?

干杯

Nik

推荐答案

您使用的是哪种类型的日食?你的日食中是否安装了AJDT?如果是这样,仍然可以选择禁用JDT编织。下面的注释(取自Roo文档)应该可以帮助您打开JDT编织(窗口 - >首选项> JDT编织。

Which "type" of eclipse are you using? Do you have AJDT intstalled within your eclipse? If so there is still an option to disable weaving of JDT. The note below (taken from the Roo documentation) should help you to turn on JDT weaving (Window -> Preferences > JDT Weaving.


使用AJDT可能会提示
是否允许编织JDT。
您应该选择启用编织所以
以确保
Eclipse(或STS)中的Java编辑器最好的
基于AspectJ的体验。你也可以通过
加载Eclipse(或STS)并选择
Window> Preferences> JDT Weaving来验证此设置是否有效。

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功能。

By the way have you considered trying the Spring Source Tool Suite? There you find all the plugins (AJDT support...) already installed. And it fits very well for Roo as it offers Roo functionality from within eclipse.

这篇关于在Eclipse中为Roo项目自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆