How to write eclipse rcp applications with scala?

后端 未结 7 1856
隐瞒了意图╮
隐瞒了意图╮ 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.

    0 讨论(0)
提交回复
热议问题