1

現在の C++ プロジェクトは、通常のテキスト エディタを使用して開発されています (IDE は使用されていません)。最近、CDT で eclipse に入れられました。ここで、プロジェクト (C++ プロジェクト) 用の新しいプラグインを開発する必要があります。Eclipse (CDT) 用のプラグインを開発するための最良のアプローチを知る必要があります。

可能な方法は、Jave PDE-->JNI-->C++ であると聞きました。C ++でEclipse用のプラグインを書くのを手伝ってくれる人はいますか?

4

1 に答える 1

0

In general, the best approach for developing plugins is to use a JVM language that can extend Java classes, implement Java interfaces, and instantiate and invoke methods in Java objects—notably Java.

Once you have that, you could delegate parts of the implementation using whatever technology you wish, such as JNI, JNA, RMI, LuaJ, Jace etc. It would be no different for an Eclipse plugin than any other program. The problem being the degree to which the delegated code has to callback into the JVM to do it's job.

In the trivial and near trivial cases, a plugin doesn't need any code but, obviously, it's contribution would be quite limited. One example is providing documentation. It all depends on what extension points it uses require.


But, if all you want is a project Builder that doesn't need to integrate much with CDT, you might not need your own plugin to do it. Eclipse provides an Ant builder and an External Program builder. See this article. With either of them, you could do things like code generation, inspections, or packaging.

于 2013-07-07T15:25:03.087 に答える