Eclipse Groovy and autocompletion

2019-07-18 02:22发布

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条回答
Explosion°爆炸
2楼-- · 2019-07-18 03:01

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.

查看更多
登录 后发表回答