Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write eclipse rcp applications with 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.

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?

like image 975
Olli Aalto Avatar asked Jan 15 '09 11:01

Olli Aalto


People also ask

Can I use Scala in Eclipse?

Scala IDE v3. 0 can be installed on both Eclipse 3.7 (Indigo) and Eclipse 4.2 (Juno), through different update sites. If you are using Eclipse 3.7 (Indigo), we recommend the latest 1.6.

What is the difference between Eclipse and Eclipse RCP?

Eclipse-based applications which are not primarily used as software development tools are called Eclipse RCP applications. An Eclipse 4 RCP application typically uses the base components of the Eclipse platform and adds additional application specific components.

What is Eclipse RCP application?

Eclipse based applications, called Eclipse RCP (Eclipse Rich Client Platform), use the Eclipse framework to create feature-rich stand-alone desktop applications. The Eclipse IDE can be viewed as a special Eclipse application with the focus on supporting software development.


1 Answers

Yes, it is possible. In fact, the Scala Eclipse plugin itself is written in 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.

like image 134
Daniel Spiewak Avatar answered Sep 18 '22 16:09

Daniel Spiewak