如何以编程方式触发 eclipse 插件更新?

How to trigger eclipse plugin update programmatically?

我有一个要求,我需要通过 code.Can 触发 eclipse 插件更新有人帮我吗?

如果你想install/update一个特定的插件,使用p2 operations API (Javadoc). Otherwise, if you want to execute the global system update command, execute the command 'org.eclipse.equinox.p2.ui.sdk.update' programmatically, as described in this blog post