如何以编程方式更新给定的Eclipse捆绑包?

| 当我尝试以编程方式更新特定的Eclipse插件时遇到一些问题。 我已经上传了在github上重现该问题所需的最少项目集。并且,我已经在github存储库中的一个问题中详细描述了该问题以及重现该问题的步骤。     
已邀请:
        使用UpdateOperation是更新指定捆绑软件的最简单方法。 您可以通过查询个人资料来指定要更新的已安装IU。
IProfile profile = ...;
UpdateOpertation updateOperation = new UpdateOperation(session, profile.query(QueryUtil.ALL_UNITS, null).toSet());
但是,最好不是显式更新所有IU。最好的方法是仅更新根IU(始终是产品IU或主要功能)。
IProfile profile = ...;
UpdateOpertation updateOperation = new UpdateOperation(session, profile.query(QueryUtil.createIUQuery(\"theidofmyproductiu\"), null).toSet());
    

要回复问题请先登录注册