Eclipse插件开发:有没有办法控制有关我的插件缺少依赖项的安装程序消息?

Yot*_*dem 5 java dependencies eclipse-plugin p2

我正在开发一个依赖于Eclipse平台4.2(Juno)的eclipse插件,并且不能安装在旧版本的eclipse上.当用户尝试在旧eclipse上安装我的插件(通过更新站点)时,Eclipse安装程序会阻止他并显示以下消息:

Cannot complete the install because one or more required items could not be found.
Software being installed: Feature 1.0.3 (com.test.feature.feature.group 1.0.3)
Missing requirement: Test 1.0.3 (com.test 1.0.3) requires 'bundle org.eclipse.core.runtime 3.8.0' but it could not be found
Cannot satisfy dependency:
From: Feature 1.0.3 (com.test.feature.feature.group 1.0.3)
To: com.test 0.0.0
Run Code Online (Sandbox Code Playgroud)

从这个错误消息中可以理解的是,他们所需要的只是更新版本的Eclipse.我想更改此消息并显示如下内容:

"安装错误:此插件需要Eclipse版本4.2(Juno)或更高版本"

这甚至可能吗?

obe*_*ies 1

您无法自定义错误消息,但 p2(使用 Kepler)在尝试找出现有安装中需要更改哪些内容以允许安装新内容方面变得更加聪明。

因此,在这种情况下,p2 修复支持可能会建议更新已安装的产品,以便可以安装该功能。