Reputation: 51
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
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