Choosing plugins to update with P2 and eclipse 4 programmatically -


i update p2 repository eclipse 4 programmatically , choose plugins update. classic way retrieve provisioning job updates repository is:

provisioningsession session = new provisioningsession(agent); updateoperation operation = new updateoperation(session); operation.getprovisioningcontext().setartifactrepositories(new uri[] { uri}); operation.getprovisioningcontext().setmetadatarepositories(new uri[] { uri}); istatus status = operation.resolvemodal(sub.newchild(100)) provisioningjob provisioningjob = operation.getprovisioningjob(monitor); istatus st = provisioningjob.runmodal(monitor); 

the resolvemodal method checks plugins update. if print possible updates have product , not plugins update.

update[] updates = operation.getpossibleupdates(); 

now, how choose plugins updates? updateoperation object constructor allows me specify list of installable units, if exclude plugin not want, system equally updates repository (because of product included in list of installable units?).

thank you.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -