fly*_*and 4 groovy eclipse-plugin eclipse-rcp
我有一个Eclipse RCP项目,我想在其中使用Groovy.我尝试做的是:
1)添加"Groovy Nature"
2)在"src"文件夹下创建Groovy文件
3)从"View"的createPartControl()方法调用groovy类.
但是我得到了"java.lang.ClassNotFoundException:fly.island.jface.Test",而"fly.island.jface.Test"是一个groovy类.
我应该怎么做才能在Eclipse RCP项目中使用groovy?
使用最新版本的Groovy-Eclipse 2.1.0(或其中一个开发版).更新站点在这里:
http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.6/
此外,在PDE构建时,您需要执行一些步骤来编译groovy插件.我建议阅读:
http://contraptionsforprogramming.blogspot.com/2010/08/groovy-pde-redux.html
基本上,您需要org.codehaus.groovy在您的rcp应用程序中包含该软件包,然后您需要对build.propertiesGroovy插件的文件进行一些更改(在博客文章中详细说明).