IntelliJ IDEA插件开发在其他JVM语言 [英] IntelliJ IDEA plugin development in other JVM languages

查看:217
本文介绍了IntelliJ IDEA插件开发在其他JVM语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用其他JVM语言(如Scala和Clojure)开发IntelliJ IDEA插件?还是为了这个目的,我们必须使用Java吗?

解决方案

是的,这是完全可能的。 p>

任何插件本质上是一组IDEA API提供的几个扩展点的扩展。这些扩展是实现预定义接口的常规java类,这些类在清单中引用。此外,您可以捆绑任何库和插件。所以,如果你的语言选择允许实现接口和找出结果类名,那么没有什么阻止你写插件。


Is it possible to use other JVM languages such as Scala and Clojure for developing an IntelliJ IDEA plugin? Or do we have to use Java for this purpose? I could find no pointers on this on web, hence posting the question here.

解决方案

Yes, it is entirely possible.

Any plugin essentially is a set of extensions for several extension points which IDEA API provides. These extensions are regular java classes implementing predefined interfaces, and these classes are referenced to in the manifest. Also, you can bundle any libraries along with the plugin. So, if your language of choice allows implementing interfaces and finding out resulting class names, then nothing prevents you writing plugins in it.

这篇关于IntelliJ IDEA插件开发在其他JVM语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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