我正在开发一个依赖于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
从这个错误消息中可以理解的是,他们所需要的只是更新版本的Eclipse。 我想更改此消息并显示如下内容:
“安装时出错:此插件需要Eclipse版本4.2(Juno)或以上”
这甚至可能吗?
答案 0 :(得分:1)
您无法自定义错误消息,但是p2(使用Kepler)在尝试找出现有安装中需要更改的内容以便允许安装新内容时更加智能。
因此,在这种情况下,p2补救支持可能会建议更新已安装的产品,以便安装功能。