如何使用Scala编写Eclipse RCP应用程序? [英] How to write eclipse rcp applications with scala?

查看:95
本文介绍了如何使用Scala编写Eclipse RCP应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Scala Eclipse插件页面显示: *支持Eclipse插件和OSGi开发,包括从plugin.xml和清单文件到Scala源的超链接.

The Scala Eclipse plugin page says: * Support for Eclipse plugin and OSGi development including hyperlinking to Scala source from plugin.xml and manifest files.

此支持如何工作?没有制作Scala插件的向导.我没有找到有关如何在Eclipse插件/RCP应用程序中使用Scala的文档.甚至有可能吗?

How does this support work? There's no wizards for making Scala plugins. I've found no documentation on how to use Scala in a Eclipse plugin/RCP application. Is it even possible?

推荐答案

是的,有可能.实际上,Scala Eclipse插件本身就是用Scala编写的.

Yes, it is possible. In fact, the Scala Eclipse plugin itself is written in Scala.

我从来没有亲自创建过Scala RCP应用程序,但是我猜测您需要做的是通常使用选择的向导来创建项目.项目进入工作区后,右键单击并选择添加Scala自然"(或具有某种效果的东西).结果将是一个带有RCP应用程序所有常规陷阱的Scala项目.完成这些设置步骤后,您应该能够在项目中同时使用Java和Scala.

I've never created a Scala RCP app myself, but I'm guessing that what you need to do is create the project normally using your wizard of choice. Once the project is in your workspace, right-click and select "Add Scala Nature" (or something to that effect). The result will be a Scala project with all of the regular trappings of an RCP app. You should be able to use both Java and Scala within the project after these setup steps.

这篇关于如何使用Scala编写Eclipse RCP应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆