Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse:获取插件的URL';安装目录是什么?_Eclipse_Plugins_Eclipse Plugin - Fatal编程技术网

Eclipse:获取插件的URL';安装目录是什么?

Eclipse:获取插件的URL';安装目录是什么?,eclipse,plugins,eclipse-plugin,Eclipse,Plugins,Eclipse Plugin,我正在尝试恢复使用this.getDescriptor().getInstallURL()和IPluginDescriptor获取URL路径的应用程序。 问题:-IPluginDescriptor与eclipse版本4.12及更高版本不兼容,因此我需要一种替代方法来获取插件的URL 注意:我没有资源更改整个项目结构。在插件的激活器中,您可以执行FileLocator.getBundleFile(bundleContext.getBundle()).toURI()。这就是你要找的吗?

我正在尝试恢复使用this.getDescriptor().getInstallURL()和IPluginDescriptor获取URL路径的应用程序。
问题:-IPluginDescriptor与eclipse版本4.12及更高版本不兼容,因此我需要一种替代方法来获取插件的URL


注意:我没有资源更改整个项目结构。

在插件的激活器中,您可以执行
FileLocator.getBundleFile(bundleContext.getBundle()).toURI()
。这就是你要找的吗?