Is there a way to create Eclipse plugins with Python?

As far as I understand, Eclipse does not provide python bindings to users by default. I could not find any projects of this kind using google.

Are there any third-party plugins for this? Any tutorial? Maybe with Jython? ..

+6
source share
1 answer

As far as I know, you need to use Java. Eclipse is written in Java, and even a vanilla application consists of several Java components glued together with the main plugin loader. Jython may work if:

  • you can cross compile Python bytecode in Java ( indeed, you can , thanks to pointing this out), and
  • you can access the Eclipse API inside Jython.

So here is more or less what your plugin architecture might look like. If you can get the Eclipse APIs, you can write most of it in Jython, and then create a Java shell for it with Embedding Jython instructions.

If you cannot get the Eclipse functionality in your Jython, you can still write some of your code in python and then access the Eclipse API in your Java level. This will be annoying in proportion to how to evenly split your code between python and Java. I worked on the project before we built python into C ++ (or maybe it was the other way around ...), and this is a serious headache if you do not plan it right.

+6
source

Source: https://habr.com/ru/post/898152/


All Articles