I need to programmatically import .jar into my workspace, just like using the menu:
Import β Plugin Development β Plugins and Snippets.
Here I find the code for importing a java project:
Description IProjectDescription = ResourcesPlugin.getWorkspace (). loadProjectDescription (new path ("PROJECT_PATH / .project"));
Project IProject = ResourcesPlugin.getWorkspace (). GetRoot (). GetProject (description.getName ())
project.create (description, null);
project.open (zero);
But I do not have .project on the .jar file. Can you help me?
thanks
source share