【问题标题】:Eclipse Plugin Development: Is there a way to control installer messages about missing dependencies of my plugin?Eclipse 插件开发:有没有办法控制安装程序有关缺少插件依赖项的消息?
【发布时间】:2013-06-05 05:23:59
【问题描述】:

我正在开发一个依赖于 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) 或更高版本”

这可能吗?

【问题讨论】:

    标签: java eclipse-plugin dependencies p2


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-22
      • 2014-04-03
      相关资源
      最近更新 更多