开发者

Developing Eclipse plugins without Java

开发者 https://www.devze.com 2022-12-11 15:28 出处:网络
Is it possible t开发者_StackOverflow社区o create Eclipse plugins/program Eclipse RCP apps without Java? (preferably in Jython)This will be possible in the next Eclipse major release e4:

Is it possible t开发者_StackOverflow社区o create Eclipse plugins/program Eclipse RCP apps without Java? (preferably in Jython)


This will be possible in the next Eclipse major release e4:

One of the goals of e4 is to provide support for writing plugins in other languages.

The quote is from http://wiki.eclipse.org/E4/JavaScript which summarizes the current state of using javascript to implement eclipse plug-ins in e4.

This issue in eclipse's bugzilla issue #227058 also has some discussion on that, but I believe it is outdated.

I am currently not aware of activity regarding other languages.


No. An Eclipse plugin is an OSGi bundle, and that requires interacting with a variety of things that can't implemented in Jython as far as I can see.

If you want to avoid Java, you can look at other things that target the JVM, but you will have to figure if you can produce and consume the specific items needed to call the necessary things and be called in the necessary ways.


OSGi bundles may be written in other JVM languages like Scala. Eclipse plug-ins, as of now, does not support any language other than Java. The Eclipse Plug-in Development Environment heavily makes use of JDT which ties it to Java. However there are some plans I heard that plug-ins might be supported in other languages. But I don't see that coming in near future.


You can write your main code in Jython and use Java interfaces to call then from Java. Take a look at this for details. Also, I am writing a utility library (github.com/abhin4v/jywrapper) to do the same. It has very little documentation right now, but you can look at the examples provided.

0

精彩评论

暂无评论...
验证码 换一张
取 消