Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 629
Luca Bixio Avatar asked Nov 04 '22 02:11

Luca Bixio


1 Answers

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)

like image 194
Tom Seidel Avatar answered Nov 09 '22 11:11

Tom Seidel