How to write eclipse rcp applications with scala?

后端 未结 7 1872
隐瞒了意图╮
隐瞒了意图╮ 2021-02-01 07:32

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

7条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 08:38

    The reason the plugin code written in Scala doesn't work with RCP is simply that the .class files don't get exported when the plugin jar is built. But there is a workaround you can use: Open the plugin.xml with the Plug-In Manifest Editor, select the Runtime tab and add a new entry "bin" for the classpath. Then on the Build tab, in the Binary Build tree, select the bin folder. The class files that are compiled in the workspace are then exported into the plug-in jar when you export the product.

提交回复
热议问题