0

I want to implement a functionality in eclipse similar to eclipse market place. The main aim to show the list of samples/archives which are to be listed in the UI and the same can be imported into the Eclipse workspace.

Can some one guide me on how to do it?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
krckumar
  • 544
  • 4
  • 21

1 Answers1

0

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

flafoux
  • 2,080
  • 1
  • 12
  • 13