将Eclipse插件从一个功能移动到另一个功能的好方法是什么?

时间:2012-05-28 14:00:48

标签: eclipse-plugin eclipse-rcp

让我们假设我们有一个包含2个Eclipse功能的更新站点(每个都有自己的插件):

  • 主要特色
  • 可选功能(取决于主要功能)

在新版本中,我想将可选功能的插件折叠到主要功能中。我不想再显示可选功能了。

如果我按照我说的那样进行移动,这对于新安装来说很好,但是对于更新来说这是有问题的,因为依赖于其插件的确切版本的旧功能将会存在并导致冲突。 / p>

我可以将“可选功能”作为主要功能的附加功能,但在这种情况下,仍然会有一个“Optional Feature.feature.group”工件,需要旧版本的功能。

我现在回到原点,必须将可选功能作为根功能添加回更新站点并向用户显示,以便在那里获得“* .feature.group”。它可以在以后安全地卸载,我可以在名称和描述中指出,但整个过程有些混乱,可能不容易理解用户。 Eclipse Marketplace安装可能会更糟糕。


安装隐藏(包含在主要虚拟功能)虚拟功能时出现的简化示例错误:

Your original request has been modified.
  "Main Feature" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
  Software being installed: Main Feature 2 (main.feature.feature.group 2)
  Software currently installed: Optional Feature 1 (optional.feature.feature.group 1)
  Only one of the following can be installed at once: 
    Optional Feature Plug-in 1 (optional 1)
    Optional Feature Plug-in 2 (optional 2)
  Cannot satisfy dependency:
    From: Optional Feature 1 (optional.feature.feature.group 1)
    To: optional [1]
  Cannot satisfy dependency:
    From: Main Feature 2 (main.feature.feature.group 2)
    To: optional [1]

1 个答案:

答案 0 :(得分:2)

为什么不将可选功能更改为虚拟功能(即没有插件的功能)。还要在虚拟特征的描述中明确表示它已被弃用。