带有 Groovy 的 Eclipse RCP:无法创建 Groovy 类
我尝试在安装 groovy 插件后创建一个 groovy 类。但是 Eclipse RCP 系统给了我以下消息:
创建元素失败
Reason: TestGroovy2[in TestGroovy2.groovy[in <default in
<src in <in org.eclipsercp.hypoberla ]]]] does not exist
顺便说一句,org.eclipsercp.hypoberla 是我正在创建的 RCP ....
任何人都可以告诉我为什么吗?
另外,如果我在 Eclipse 上创建一个 groovy 项目,我在那里创建一个 groovy 类没有问题......但我需要在我的 RCP 项目中一些 groovy 脚本......
任何帮助将不胜感激!
谢谢。
顺便说一句:我正在使用 Eclipse V 3.6。
我找到了以下帖子,并完全按照博客的建议进行操作...但是,我无法创建新的 groovy 类...
I tried to create a groovy class after installing a groovy plugin. But Eclipse RCP system gives me the following message:
Creation of Element Failed
Reason: TestGroovy2[in TestGroovy2.groovy[in <default in
<src in <in org.eclipsercp.hypoberla ]]]] does not exist
by the way, the org.eclipsercp.hypoberla is the RCP I'm creating ....
any body could tell me why?
also, if I create a groovy project on Eclipse, I have no problem creating a groovy class there....but I need some groovy script in my RCP project...
any help would be greatly appreciated!
thanks.
BTW: I'm using Eclipse V 3.6.
i found the following post and followed exactly as the blog suggested...still, I cannot create a new groovy class....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它可能是一个 Java 项目。您确实需要首先为其添加常规性质:
右键单击项目
配置 ->转换为groovy项目
It might be a Java project. You indeed need to add a groovy nature to it first:
right click on the project
configure -> convert to groovy project