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?
Cheers
Nik
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.
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.
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.