Eclipse Groovy and autocompletion

拥有回忆 提交于 2019-12-10 22:24:06

问题


I am using the current version of SpringSource Tool Suite with the Groovy/Grails plugin installed. I can understand that when defining and using "pure" groovy classes/objects there are cases that make code autocompletion difficult.

But if I use Java classes in the groovy class shouldn't the autocompletion feature work as intended? For example i'm trying to use "readFileToString" from the org.apache.commons.io.FileUtils class. Eclipse only suggests groovy methods for this class, there is no static method in the list from FileUtils class.

Is it a problem with my installation of STS or maybe the groovy editor in STS just doesn't support autocompletion for pure java classes?


回答1:


You may also want to make sure you are on the latest and greatest version of the Groovy-Eclipse plug-in. It has grown by leaps and bounds over the past 6 months, and each release just gets better. I had a similar issue with finding methods from a parent class, and it was resolved after an upgrade. I pick up Groovy Eclipse via the download within SpringSource Tool Suite.



来源:https://stackoverflow.com/questions/6312596/eclipse-groovy-and-autocompletion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!