Luca Bixio
Luca Bixio

Reputation: 51

How to programmatically import plug-ins and fragments from jar files

I have some plug-ins and fragments exported in some jar files. I need to programmatically import those plug-ins and fragments as it is usually done through GUI by using File --> Import --> Plug-in Development --> Plug-ins and Fragments so I have these in my current workspace. I have read some posts related to import projects (i.e. by exploiting .project) but in this case I only have jar files.

Snippets and/or hints will be really appreciated.

Upvotes: 5

Views: 431

Answers (1)

Tom Seidel
Tom Seidel

Reputation: 9535

Look into the Source-Code of Eclipse how it's done. - Open the wizard that implements the requested functionality open Plugin-Spy (Shift+Alt+F1) and jump into the source code (in your case a good starting point would be org.eclipse.pde.internal.ui.wizards.imports.PluginImportWizardDetailedPage)

Upvotes: 2

Related Questions