Pergunta

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.

Foi útil?

Solução

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());
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top