I encounter some problems when I try to programmtically update specific Eclipse plug-ins.

I've uploaded the minimal set of projects that is needed to reproduce the problem on github. And, I've described the problem and the steps to reproduce it in details in an issue on the github repository.

有帮助吗?

解决方案

Using UpdateOperation is the simplest way to update the specified bundles.

You can specify the installed IUs to be updated via querying your profile.

IProfile profile = ...;
UpdateOpertation updateOperation = new UpdateOperation(session, profile.query(QueryUtil.ALL_UNITS, null).toSet());

But it's not a best practice to explicitly update all IUs. The best way is only updating the root IU(always is the product IU or top feature).

IProfile profile = ...;
UpdateOpertation updateOperation = new UpdateOperation(session, profile.query(QueryUtil.createIUQuery("theidofmyproductiu"), null).toSet());
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top