Eclipse 3.8から4.6に移行する必要があります。 私の問題は、4.6(またはそれ以前)のPlatform.getPlugin()が廃止され、常にnullを返すということです。 プラグインの代わりにバンドルを使用しても、公開APIを無効にする必要があります バンドルからプラグインを取得する方法があるかどうか知っていますか?Eclipse 3.8から4.6への移行Platform.getPlugin()はnullを返します
/**
* As the org.eclipse.core.runtime.compatibility plug-in has been removed in
* Eclipse 4.6 this method is not supported anymore.
*
*/
@Deprecated
public static Plugin getPlugin(String id) {
return null;
}
よく 'Plugin'は' BundleActivator'を拡張しています。バンドルの 'BundleContext'にはBundleActivatorへの参照が含まれていますが、それにアクセスするためのインターフェースはないようです。 –