Follow steps for eclipse 3.X :
- Figure a way to place or choose the directory where your updatesite are
- Parse it and display to your user a list of choices (as a combox in coolbar, or a button that display a list ....)
- Create URI pointing to the selection
- initialize a P2Agent
- Load Repository
- Proceed to Install (I assume it's only for installing plugin, not update)
- Retrieve from install a
provisioningJob
and schedule()
it
Check vogella tutorial but beware that UpdateOperation()
applies to plugin already in installed in eclipse, and InstallOperation()
is for new plugin.
OperationFactory doc from which you get the operation you need.
Additional source, specially in the end of the link